SELECT count(*) as total FROM friends WHERE UID= and friends_status='Confirmed'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 friends_status='Confirmed'' at line 1