Warning: Undefined array key "user_id" in D:\InetPub\vhosts\pkineticdrugdosing.com\httpdocs\loginsystem2\datafittings.php on line 23

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ORDER BY hcid ASC, Drug ASC, FitDateTime ASC' at line 1 in D:\InetPub\vhosts\pkineticdrugdosing.com\httpdocs\loginsystem2\datafittings.php:49 Stack trace: #0 D:\InetPub\vhosts\pkineticdrugdosing.com\httpdocs\loginsystem2\datafittings.php(49): mysqli->query('SELECT FitDateT...') #1 {main} thrown in D:\InetPub\vhosts\pkineticdrugdosing.com\httpdocs\loginsystem2\datafittings.php on line 49