No, that's all you need for the query. You still need an established connection to work with in mysqli_query function call.
According to your error, $con is not available in scope of where you have called the mysqli_query. Change your include to a require_once call.
header('HTTP/1.1 420 Enhance Your Calm');