Consider I have a table like this.
+-------------+---------------+----------------+---------------+ + id + column 1 + column 2 + column 3
use this query select * from table where column 1 = 'values' AND column 3 like '%$value%'