A Model for Magnetohydrodynamic Convection Relevant to the Solar Dynamo Problem