Error: syntax error at line 2 near "select *end of input*"