I have a SQL query as follows
SELECT * FROM
epf_applicationWHERE
application_idIN
(SELECT
application_idFROM
epf_application_device_typeWHERE
device_type_id IN
(SELECT
device_type_idFROM
epf_device_typeWHERE
name=”someDevice”) LIMIT 30) LIMIT
30
When I run it in phpMyAdmin, I get the following error
1235 – This version of MySQL doesn’t yet support ‘LIMIT & IN/ALL/ANY/SOME
subquery’
From the error, I am guessing that there is a problem with placing LIMIT in a subquery. Any suggestions on how I can fix this?
1 Answer