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 Group By prod_representatives.id, prod_representatives_group.state_id' at line 1
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.www.kmaioff.com = 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