I have made a query as below but MYSQL is returning error saying
Error Code: 1235. This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
How can rewrite this query to get around this problem?
Thanks.
I tried using keyword 'IN' in the query with LIMIT 10
SELECT
'Y',
`account`,
`awb`,
`hawb`,
`service`,
`handling`,
`reference`,
`date_submitted`,
`date_imported`,
`date_printed`,
`printed_file_id`,
`date_received`,
`date_booked`,
`booked_file_id`,
`date_exported`,
`export_file_id`,
`company`,
`contact`,
`address_line_1`,
`address_line_2`,
`address_line_3`,
`id`
FROM
`consignment` WHERE `consignment`.`processed`=1 AND `eamglo5_singaporelive`.`consignment`.id NOT IN ( SELECT eamglo5_billingsystem.`consignment`.`refrence_id` FROM eamglo5_billingsystem.`consignment` limit 10) limit 10
Expected: Should execute the query with no problem Actual: Getting error Error Code: 1235. This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'