I need to select all from database when "main=1" once, then select all from database when "main=0" and use them **within the same request**. Can I do this in one request?
this is the request

1.

```
$result = $apt->query("SELECT * FROM cat where main='0'");

while($row=$apt->dbarray($result)){

@extract($row);

```

2.

```
$result = $apt->query("SELECT * FROM cat where main='1'");

while($row=$apt->dbarray($result)){

@extract($row);

```

I kind of need to combine them in one request because this will make a conflict when do 2 request.
Thanks