a.parent_class_id=2 AND a.parent_mess_id= 
SELECT COUNT(*) FROM Message5 AS a LEFT JOIN Subdivision sub ON a.Subdivision_ID=sub.Subdivision_ID WHERE 1 AND a.Parent_Message_ID='' AND a.parent_class_id=2 AND a.parent_mess_id= AND a.Checked=1 AND a.Subdivision_ID='19' AND a.Sub_Class_ID='19'