la consulta esta mala, $_GET es un arreglo asociativo y tienes que poner los string con comillas
Código PHP:
$query = "select nombre_categoria,nombre_producto,ruta_foto_grande,ruta_foto_pequeña,descripcion_producto from producto,foto,categoria where id_foto=producto_id_foto and id_categoria=producto_id_categoria and id_categoria=". $_GET['id_categoria'] ." group by nombre_producto ";