I want to execute the following query on mysql DB, using PHP-PDO.
SELECT count(id) FROM view_id WHERE id=@id and id_a='1' and id_b='1' and id_c='3' and id_d='2'
However when I run on the database it executes nice, and gives me a result. But when executing with php - PDO it gives error, by the way no error message, just stops the webpage deployment. Any help is really appreciated.
Thanks,