SELECT * FROM msg WHERE (name LIKE %name% AND email LIKE %email%) or Flag=True