以下のクエリを実行するとエラーが発生し、問題を特定できませんでした。誰でも助けてもらえますか?
SELECT shifts.consultant_uid AS consultant_uid, shifts.status AS
status , shifts.pay_roll_no AS pay_roll_no, shifts.week_ending AS week_ending, shifts.shifts_date AS shifts_date, shifts.description AS description, shifts.units AS units, shifts.pay_rate AS pay_rate, shifts.charge_rate AS charge_rate, shifts.pay_amount AS pay_amount, shifts.charge_amount AS charge_amount, shifts.margin_amount AS margin_amount, shifts.client_name AS client_name, consultant.user_name AS consultant_name,
FROM a_shifts AS shifts
LEFT JOIN a_users AS consultant ON shifts.consultant_uid = consultant.user_uid
WHERE 1
AND week_ending >= '2013-03-17'
AND week_ending <= '2013-03-24'