Error MYSQL Query : Unknown column 'S' in 'where clause'