SELECT count(id) as totalCnt FROM item_likes WHERE itemId= AND isLike='yes' AND ItemType='WI'
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 isLike='yes' AND ItemType='WI'' at line 1 on 1064