Here's an idea, re-think your table design. As I read your post here is the table structure that I'm envisioning:
table1
------
login
password
permission
comments
data1
data2
data3
data4
....
This is a very ugly table there is no reason to have all of these dataX fields espically if they all hold the same type of data (i.e. varchar, int, bool). A better table design would be:
table1
------
table1_id
login
password
permission
comments
table1_data
-----------
table1_data_id
table1_id
data
With this table design you can do a single query to get the information that you want.
SELECT table1.*
FROM table1, table1_data
WHERE table1.table1_id = table1_data.table1_id
AND data = 'My Search Request';