Executes the SQL and retuns all rows selected in a map that is keyed on
the property named in the $keyProperty parameter. The value at
each key will be the value of the property specified in the
$valueProperty parameter. If $valueProperty is
null, the entire result object will be entered.