First of all I want to say Hi to all.
I have a strange problem with sql query in php.
I’m using PDO to connect with MySQL database. A query:
“SELECT o.* FROM table1 o UNION SELECT o.* FROM table2 o LEFT JOIN table3 d ON o.field1 = d.field1 ORDER BY field2 ASC”
doesn’t work in php.
When I using this query in PHPMyAdmin it works fine.
Any suggestions would be very appreciated.
Thanks in advance,
Kris