Select Error: Unknown column 'LG' in 'where clause'