1064: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 act = 1 and album_id = 18' at line 1
1
select count(*) as cnt from photoitems where priority > and act = 1 and album_id = 18