Unknown column 'properties_loc1.id_loc1' in 'where clause'