Prova ad aggiungere i backtick (alt+96) ai nomi delle tabelle e delle colonne, così:
Codice PHP:
SELECT FROM `$rs[0]` WHERE `$rs1[0]` LIKE '%$str%'