I have printed out a CI generated code, so to talk about the statement, since it would be easier. Here it is:
SELECT *
FROM (`ads`)
WHERE `status` = 2 AND `province` = '5' AND `title` LIKE '%شریف%'
OR `content` LIKE '%شریف%' OR `name` LIKE '%شریف%'
OR `keywords` LIKE '%شریف%'
ORDER BY `stars` DESC
But, it shows results which are with value "8" for the province, while it is said in statement to only get results with province "5". Why it does not work correctly?