A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.com = 1 Order by prod_dist.state_name, prod_distributors.sort, prod_distributor' at line 1

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.www.southwestupfitters.com = 1 Order by prod_dist.state_name, prod_distributors.sort, prod_distributors.company