TEXT : Undefined variable: factory_id
LOCATION : /var/www/ LINE : 306Today Debug SQL :: SELECT * FROM FTCS_FAC_MASTER WHERE factory_id < ORDER BY factory_id DESC LIMIT 0,1
1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY factory_id DESC LIMIT 0,1' at line 1