MySQL Error!
------------------------

The Error returned was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND geo.type='parentregion'' at line 6

Error Number:
1064
SELECT region.nameregion, region.id_region, region.geo_id FROM geo, region
WHERE
region.geo_id = geo.id

AND geo.parentid = 
AND geo.type='parentregion'