function select($query, $param){
$stmt = $this -> db -> prepare($query);
$stmt -> execute($param);
$row = $stmt -> fetch();
print_r($row);
}
select('SELECT `user_pass` FROM `users` WHERE BINARY `user_mail` = :mail LIMIT :lim', array(':mail' => 'vlad-dub1994@mail.ru', ':lim' => 1));
SELECT `id` FROM `users` WHERE BINARY `mail` = ? AND `pass` = ? LIMIT ?
SELECT `id` FROM `users` WHERE BINARY `mail` = ? LIMIT ?
SELECT `name` FROM `news` WHERE `category` = ? AND `subcategory` = ? AND `motor` = ? LIMIT ?
Суть не меняется от этого.