SELECT cd.id,cd.user_id,cd.company_name,cd.url_name,cd.logo,cd.cover,cd.short,cd.description,cd.pib,cd.address1,cd.phone,cd.mobile,cd.email,cd.web,cd.url_facebook,cd.url_instagram,cd.url_youtube,cd.category_ids,cd.lat,cd.lon,cd.display_work_time,cd.work_time,cd.docs,u.package_id,u.requested_package_id FROM company_data AS cd INNER JOIN users AS u ON u.id = cd.user_id AND u.deleted = '0' AND u.active_in_company_list = 1 INNER JOIN company_categories AS cc ON FIND_IN_SET(cc.cat_group_id, cd.category_ids) AND cc.cat_group_id IN (446) AND cc.deleted = '0' WHERE cd.deleted = '0' GROUP BY cd.user_id ORDER BY package_id DESC, company_name
1021: Disk full (/tmp/#sql_bac_2); waiting for someone to free some space...