Php design insight

Hi

I want to check a few things… I have this variable…

$query = “SELECT * FROM sweets WHERE 1”

now is it possible to make something like

$query = “SELECT * FROM sweets WHERE” + $selected

where $selected can be changed to “sCategory=chocolate”

thanks