SELECT SQL_CALC_FOUND_ROWS COUNT(results.c_1) as count, results.* FROM ( SELECT * FROM p_1 WHERE c_1 LIKE "%Homme%" AND id!=26237 AND c_18 < 1596633348 UNION ALL SELECT * FROM p_1 WHERE c_1 LIKE "%Debout%" AND id!=26237 AND c_18 < 1596633348 ) as results WHERE c_18 < 1596633348 GROUP BY results.id ORDER BY count DESC LIMIT 6
Got error 28 from storage engine