i have this clause:
"Select *
From
(
Select sedi_i18n.*,
0 orden
From table sedi_i18n
Where culture= 'italiano'
Union
Select sedi_i18n.*, 1 orden
From table sedi_i18n
Where culture<> 'italiano'
)
Order By orden, culture";
But i’m getting this error:
SQLSTATE[42000]: Syntax error or
access violation: 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 ‘table sedi_i18n Where
culture= ‘italiano’ Union Select
sedi_i18n.*, 1 or’ at line 6
Any idea?
Regards
Javi
You need a subquery alias after your parenthesis, and to remove the word table – like so: