I'd like to do a single query on one table without using UNION
Here are the two queries that I need to combine.
SELECT field1, field2, field3 FROM table1 WHERE field4 != 'condition1' AND feild3 >= 'condition2' ORDER BY field3 ASC LIMIT 20;
SELECT field1, field2, field3 FROM table1 WHERE field4 != 'condition1' AND feild3 < 'condition2' ORDER BY field3 DESC LIMIT 5;
Basically, I'm trying to get 20 records above a certain record (ordered by field3, not the id), and 5 records below it, without grabbing the record itself in the results.
The trick is, I can't use UNION.