ERROR: Unable to execute query
select count(users.id) as total from favorites,users where users.id = favorites.posting_id and type='user' and favorites.status = '1' and account_status =1 and favorites.mid =
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 '' at line 1