I have a two column MySQL table which represents the variations of a product with three different options (size, colour etc.)
##############################
# VariationID # OptionID #
##############################
# 1 # 10 #
# 1 # 20 #
# 1 # 30 #
# 2 # 11 #
# 2 # 20 #
# 2 # 30 #
# 3 # 10 #
# 3 # 22 #
# 3 # 30 #
# 4 # 10 #
# 4 # 20 #
# 4 # 33 #
##############################
The table is generated by the PHP framework I'm using (Silverstripe) so I can't easily modify it.
How do I identify which VariationID is matched to specific options?
Can I run a MySQL query that returns the VariationID for the variation with the OptionIDs 10,20,30?
If it isn't possible in raw MySQL what's the best approach in PHP?