Yes if the user select more than one option the query will be wrong,
for example: the same table will be displayed two times in the FROM section.
As i have only two diferent tables
One is called for 2 itens and the other is called for 6 itens
The WHERE section must have just one item and the rest of the itens choosed must be in the AND section
But the WHERE clausule is displayed for all the options the user choose
Also the AND section have just one and and for the rest of the options choosed it display only the matching field and not the AND + matching field.