SELECT * FROM table WHERE file_format='p$b.zip' or file_format='p{$b}.zip' or file_format='p${b}.zip'