If you want to transfer strictly one copy of parameter into the query (assuming that you search the same pattern) you may use
SELECT *
FROM datatable
WHERE CONCAT_WS(CHAR(X), Name,Code,Date,Inserter) LIKE ?
AND ID = '2'
where CHAR(x) is any char which cannot be found in a field or in a pattern.