MySQL Error!
MySQL error in file: /engine/modules/show.full.php at line 1153
Error Number: 1064
The Error returned was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and rating=0) as b WHERE a.news_id= and rating=1' at line 1
SQL query:

SELECT count(a.id) as yes, b.no as no FROM `vkitems_rating` a join (select count(id) as no from vkitems_rating where news_id= and rating=0) as b WHERE a.news_id= and rating=1;