Hallo zusammen,
Wieso gibt das ein #1054 - Unknown column 'sys_loc_id' in 'on clause'??
PHP-Code:
SELECT geodb_textdata.loc_id AS sys_loc_id, geodb_textdata.text_val AS PLZ, td2.text_val AS Ort
FROM geodb_textdata, geodb_hierarchies hi
LEFT JOIN geodb_textdata td2 ON ( td2.text_type =500100000
AND td2.loc_id = sys_loc_id )
WHERE geodb_textdata.text_type =500300000
AND hi.loc_id = geodb_textdata.loc_id
AND hi.level >=6
AND geodb_textdata.text_val LIKE '7059%'
ORDER BY geodb_textdata.text_val
LIMIT 0 , 30
Kommentar