Is each of the 22 tables a category? If so, you might do better to put all of the information in one table with an extra column for 'category' (in case you still need it in the future). Then, you can search any record without having to mess with searching across 22 tables?