Quote:
Originally Posted by r937
run your query outside of php, i.e. directly in mysql
you will see that it actually does work
then inspect your php code for the source of the error
|
Thanks

Only after runing the query in mysql i could figure out the problem.
The problem was that I didn't blindly follow your syntax in the first place and didn't include
AS PoetName.
Working perfectly now

And thanks for not telling me my mistake too early. Your strategy made me understand the meaning of
AS PoetName.