Database error: Invalid SQL: SELECT Count(*) CN FROM enterprise e,enterprise_after_sale s,enterprise_after_sale_to_enterprise t WHERE and t.after_sale_id=s.id and e.id=t.enterprise_id
MySQL Error: 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 'and t.after_sale_id=s.id and e.id=t.enterprise_id' at line 1)
Session halted.