Concat() in mysql-Abfrage

ich habe ein problem das verketten von string in einer mysql-Abfrage.

hier ist meine Abfrage:

SELECT *, CONCAT(nombre,' ',apellido) AS fullname FROM user WHERE nombre LIKE '%$busqueda%' OR apellido LIKE '%$busqueda%' OR email LIKE '%$busqueda%' OR about LIKE '%$busqueda%' OR place LIKE '%$busqueda%' or fullname LIKE '%$busqueda%'

jedoch schlägt die Abfrage fehl:
Query failed: Unknown column 'fullname' in 'where clause'

Proabably ist nur ein Syntax Fehler, thx

InformationsquelleAutor Dan Stern | 2010-12-21

Schreibe einen Kommentar