Invalid query: SELECT DISTINCT tComments.*, tCompanies.name AS company_name, tCompanies.url AS company_url FROM companies_comments tComments, companies tCompanies, companies_categories_assoc tAssoc WHERE tCompanies.city_id = 4 AND tComments.company_id = tCompanies.id AND tAssoc.cat_id = 7 AND tAssoc.company_id = tComments.company_id GROUP BY tComments.company_id ORDER BY tComments.date_send DESC LIMIT 5