SELECT u.*, (SELECT count(v.id) FROM videos v where v.users_id = u.id) as total_videos FROM users u HAVING total_videos > 0 AND u.status = 'a' \nError : ()