I cant tell about the query you use
because I do not use such advanced things as IN()
Actually I am not at all sure you have error in that posted line.
Might be the line before or even several lines before you have syntax issue.
But the only thing I can guess and know about is
to put single quotes around string data.
That is if these 2 data are strings:
IN ( '{$odata['equip_primary']}', '{$odata['equip_secondary']}' )