You have an error in your SQL syntax near 'FROM jewellery, WHERE jewellery.id_category = .id and .id = ' at line 6