You're missing the if() condition in your code. Based on your original example the final query should look like:
$construct = "SELECT * FROM `tooldata` WHERE `search` LIKE '%Bosch%' AND `type`= 'Drills'";
So, just figure out in your logic what is being generated and how it needs to change. Is your brand/product field actually named "search"?