$output= '{"category:LIKE":"%||'.$cat.'","OR:category:LIKE":"'.$cat.'||%","OR:category:LIKE":"%||'.$cat.'||%","OR:category:=":"'.$cat.'"}';
[category:LIKE] => %||1 [OR:category:LIKE] => %||1||% [OR:category:=] => 1
This question has been answered by [email protected]. See the first response.
$output= '{"category:LIKE":"%||'.$cat.'","OR:category:LIKE":"'.$cat.'||%","OR:Category:LIKE":"%||'.$cat.'||%","OR:category:=":"'.$cat.'"}';
$c->where("CONCAT('||',category,'||') LIKE '%||" . $cat . "||%'", xPDOQuery::SQL_AND);