I know I've seen this asked before, but I can't seem to find it. How do I put two different conditions within the WHERE clause in a MySQL query. For example, I tried this:

SELECT * FROM uicomments WHERE ID=$id AND type=$type

but I just got an error. Can anybody tell me how to do this properly?