SELECT row WHERE parameter
===

I am trying to make a query based on a get variable. I use the variable to specify which rows the query should find. When there is no get variable set, i want the query to get all rows.

Earlier in the code i set the $category variable to be either 1,2,3.

    WHERE products.category = $category

The question: How do i make it get all the rows if no variable is set?