I have a problem on SQL query which contains bindValue. The error: Fatal error: Uncaught Error: Call to a member function bindValue() on bool (240).
But I can't see any problem in the codes. Help pls :/
$count = $db->query("SELECT * FROM songs WHERE title LIKE :search");
$count->bindValue(":search","%{$search}%",PDO::PARAM_STR); // (line:240)
$count->execute();