Thanks for an answer,
I have a loop for display $fea variable - it shows checkboxes:
for($i=0;$i< count($fea);$i++)
{
$sql_search .= " it.feature_id like '%$fea[$i]%' ";
if($i!=(count($fea)-1))
$sql_search .= " AND ";
Sorry, if I described it unprecisely but there is no feature table. It's a scheme of item table...
------------------------------------------
| id | title | feature_id | category_id |
-------------+------------+--------------+
| 1 | a | 1, 4 | 1,5 |
------------------------------------------
...and category table
--------------
| id | title |
-------------+
| 1 | b |
--------------
If you search only by item title and then you choose checkboxes to filter results evrything works well.
If you search by category name (and) item title search results are correct. But filter gives you no results I mean it says there are no records which has features you checked. It's false so I think the problem is a query.
I can join tables by category_id but what about features?