Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` left join wp_icl_translations on wp_icl_translations.element_id = LEFT JOIN `wp_postmeta` AS `fecha` ON `fecha`.`meta_key` = 'fecha' AND `fecha`.`post_id` = `t`.`id` WHERE language_code = "es" AND `t`.`post_type` = "campeonatos" ORDER BY `fecha`.`meta_value` DESC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 1; Response: Expression #1 of ORDER BY clause is not in SELECT list, references column 'lamonaci_bd.fecha.meta_value' which is not in SELECT list; this is incompatible with DISTINCT