could not execute query SELECT p.*,IFNULL(pt.description_t,p.description) description,GROUP_CONCAT(DISTINCT IF('cn'='kh',c.name_kh,c.name_cn) SEPARATOR ' , ') provincecity_name,GROUP_CONCAT(DISTINCT c.id) locid,IFNULL(IFNULL(u.company_name,fullname),'N/A') postedby,role.title rolename,IFNULL(pt.title_t,p.title) itemname,count(IFNULL(pi.id,NULL)) totalitem from v_package p left join v_package_t pt on pt.main_id=p.id and pt.language_id=3 left join v_package_item pi on pi.package_id=p.id left join v_items i on i.id=pi.item_id left join provincecity c on c.id=i.provincecity left join users u on u.id=p.created_by left join user_role role on role.id=u.role_id where p.active=1 and p.approved=1 and p.active_by_user=1 and p.id <> 13 GROUP BY p.id order by RAND() limit 2