A Database Error Occurred

Error Number: 1054

Unknown column 'prod_representatives.0' in 'where clause'

select * from prod_dist, prod_representatives_group, prod_representatives where prod_dist.state_id > 0 and prod_representatives_group.state_id = prod_dist.state_id and prod_representatives.id = prod_representatives_group.rep_id and prod_representatives.0 = 1 Group By prod_representatives.id, prod_representatives_group.state_id, prod_representatives_group.notes1 Order by prod_dist.state_name, prod_representatives.sort, prod_representatives.company, prod_representatives.name