`$result = $db->sql_query($sql);` should be sufficent