Question2Answer query failed:

SELECT u.userid, count(p.postid) AS qs, count(p.selchildid) AS selected
FROM qa_users u
LEFT JOIN qa_posts p ON u.userid=p.userid AND p.type="Q"
WHERE u.handle='زهرا فرهانی'

Error 1140: In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'javaby_q2a.u.userid'; this is incompatible with sql_mode=only_full_group_by