More Select * Queries convert

This commit is contained in:
johnnyq
2026-08-06 13:57:46 -04:00
parent 108781db5b
commit f8899e592f
9 changed files with 22 additions and 18 deletions

View File

@@ -2890,7 +2890,7 @@ if (isset($_POST['export_tickets'])) {
// Get records from database - same shape as the tickets page list query
$sql = mysqli_query(
$mysqli,
"SELECT * FROM tickets
"SELECT category_name, ticket_billable, ticket_number, ticket_prefix, user_name FROM tickets
LEFT JOIN clients ON ticket_client_id = client_id
LEFT JOIN contacts ON ticket_contact_id = contact_id
LEFT JOIN users ON ticket_assigned_to = user_id