A Database Error Occurred

Error Number: 1054

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

select * from prod_dist, prod_distributors_group, prod_distributors where prod_dist.state_id > 0 and prod_distributors_group.state_id = prod_dist.state_id and prod_distributors.id = prod_distributors_group.dist_id and prod_distributors.0 = 1 Order by prod_dist.state_name, prod_distributors.sort, prod_distributors.company