You have an error in your SQL syntax near 'AS field, AS type FROM ' at line 1