Update equipment pages to fix sql query