Code MySQL:
Can anyone explain why the use of CONCAT above causes an error?
| SitePoint Sponsor |
Code MySQL:
Can anyone explain why the use of CONCAT above causes an error?
Not seeing the data I'm going to guess it's a LEFT JOIN issue as there seems to be no syntax error with your SQL statement. Do you have to use a LEFT JOIN or can you try an natural join?
What's the error?
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget


there is no error, although single quotes to delimit strings would be better, since that would be standard sql
i'm guessing this sql statement is inside doubleqoutes in a php assignment
$sql = "SELECT....
that would produce an error
i was misled by the sql error, after simplifying the query i found that one of the col names was wrong.
Bookmarks