Switched from MySQL to MySQLi requires the connection parameter
Use object-oriented style:

$con = getCon();
$result = $con-&gt;query("SELECT * FROM sometable WHERE deleted=0");


Refer to Example #1 on the PHP documentation for mysqli_query(), as well as the Dual interface quick start page for more information. 

Looking back at the functions like deprecated mysql_query() it appears that it used the "last link opened by mysql_connect()". If you really wanted to replicate that, you could define a wrapper function (potentially using call_user_func()):

function mysqli_query_con($query, $resultmode = MYSQLI_STORE_RESULT)
    $con = getCon();
    return mysqli_query($con, $query, $resultmode);
}