Unknown column 'es' in 'where clause': SELECT * FROM im_categorias WHERE id=es