1030: Got error 122 from storage engine
SELECT SQL_CALC_FOUND_ROWS company.*, image.*, MIN(object.price) AS min_price FROM company LEFT JOIN object ON object.company_id = company.company_id AND object.is_deleted = 0 AND object.is_visible = 1 LEFT JOIN image ON image.image_id = company.image_id WHERE company.is_deleted = 0 GROUP BY company.company_id ORDER BY company_position LIMIT 15,15