데이터베이스 오류가 발생하였습니다.

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND `A`.`ord_sched_state` = 'Y'' at line 6

SELECT `A`.`ord_sched_indx` AS indx, `A`.`ord_sched_catg` AS catg FROM (`web_ord_sched` A) JOIN `web_ord_catg` B ON `A`.`ord_sched_catg` = `B`.`ord_catg_indx` WHERE `A`.`ord_sched_indx` = '419' AND `B`.`ord_catg_auth` <= AND `A`.`ord_sched_state` = 'Y'

Filename: /home/birkman/public_html/modules/main/models/purchase_model.php

Line Number: 134