Hope someone can help this is driving me made.
Can anybody tell me what is wrong with this select, It currently does the search properly but it checks every result in "Galleries" rather than just the ones in "category: summer" and "Status: used".
So what i want it to do is search for the keywords ($find) only if they are in category "summer" and Status "used". Any ideas what i need to do. Lol ill take anything at this point. stressed :)
$result = mysql_query("
SELECT
Gallery_URL,
Thumbnail_URL,
Nickname,
Description
FROM Galleries
WHERE
Category = 'summer'
AND Status = 'Used'
AND Nickname LIKE '%$find1%'
OR Nickname LIKE '%$find2%'
OR Nickname LIKE '%$find3%'
OR Description LIKE '%$find1%'
OR Description LIKE '% $find2%'
OR Description LIKE '%$find3%'
LIMIT 0 , 10");