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