這個查詢有什麼問題?它說:使用附近的語法'INNER JOIN
cm_competitions ON cm_matches.competition_id = cm_competitions.compet
這是怎麼回事?Mysql查詢內部連接?
$query_matches = "SELECT cm_matches.match_id, cm_competitions.name
INNER JOIN cm_competitions.name
ON cm_matches.competition_id = cm_competitions.competition_id
FROM cm_matches
WHERE cm_matches.club_h_id = 8
OR cm_matches.club_v_id = 8";
基本的順序 - 'SELECT col FROM tbl1 INNER JOIN tbl2 ON tbl1.col = tbl2.col'而不是'SELECT col INNER JOIN ...' –