Unknown column 'tipos' in 'where clause' Query: SELECT DISTINCT year, enlacemake, enlacemodel, year, enlacebody, body, make, model, enlacemake, enlacemodel FROM `auto_databases_one` WHERE enlacemake='mahindra' and enlacemodel='marshal' and year=tipos-de-carroceria AND `is_active` = '1' ORDER BY year ASC