MySQL Error: Unknown column 'L' in 'where clause'