你写的SQL 是这样色的
Select
<select_list>
From
<left_table> <join_type>
Join <right_table> ON <join_condition>
Where
<where_condition>
Group By
<group_by_list>
Having
<having_condition>
order by
<order_by_condition>
limit
<limit_number>
但是机读是这样丝的
FROM
<left_table>
ON
<join_condition>
<join_type> Join<right_table>
WHERE
<where_condition>
GROUP BY
<group_by_list>
HAVING
<having_condition>
SELECT
DESTINCT <select_list>
ORDER BY
<order_by_condition>
LIMIT
<limit_number>