The outcome is surprising me as well. This is the function. private function get_highest_demand() {
if ($this->databaseConnection()) {
$query = $this->db_connection->query("SELECT $this->top_buy_table.OrderId, $this->top_buy_table.Price, $this->top_buy_table.Quantity FROM `$this->orders_table`, `$this->top_buy_table` WHERE $this->orders_table.OrderId = $this->top_buy_table.orderId ORDER BY $this->top_buy_table.price DESC LIMIT 1");
$rowCount_Qty = $query->rowCount();
if (!$rowCount_Qty) {
return false;