yes, you can use tablename.*
for this, here is a short example:
SELECT table1.*
FROM table1
JOIN table2 ON table2.id = table1.id
to check whether a variable exists in any of the columns you'd first select the columns using the query that scaisEdge posted as well:
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'my_database'
AND TABLE_NAME = 'my_table';
Then you would loop through the results of this query to buil the IN(column1, column2 e.t.c)
part of the query
And than you can put this line in a where to do your new select:
WHERE ? IN(column1, column2)
Use prepared statements so you are not vulnerable to sql injections