Hi, I am trying to use WHERE id='10' AND name!='bobby' OR username!='bobby9101' So pretty much if my database looks like: rows: id name username And I want to select WHERE id='10' BUT if name='bobby' OR username='bobby9101' don't return it. So One field needs to be required, but if one of the others matches, then don't return it. Is my code right? WHERE id='10' AND name!='bobby' OR username!='bobby9101' Code (markup):
Nearly there, but I would group the logic into brackets WHERE id='10' AND (name!='bobby' OR username!='bobby9101') Code (markup):