(mysqli): SELECT * FROM cms LIMIT 1  

(mysqli): SELECT code FROM menus WHERE type ='tree'  
Eastern Poker Tour

(mysqli): SELECT p.first, opt.nickname FROM player p LEFT JOIN player_opt opt ON p.id = opt.player_id WHERE p.id = 38570  

(mysqli): SELECT pts.points as points, bonus_p.points as ppts, bonus_b.points as bpts, pts.action, e.date as date, e.points_multiplier as points_multiplier, e.id as eid, e.name as ename, t.id as tid, t.nickname as tname, t.abbreviation as tabbr, l.id as lid, l.name as lname FROM (SELECT event_id, SUM(points) AS points, SUBSTRING_INDEX(GROUP_CONCAT(action ORDER BY points DESC, id ASC), ',', 1) AS action, MAX(id) AS sort_id FROM player_pts WHERE player_id = 38570 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 38570 GROUP BY event_id) bonus_p ON bonus_p.event_id = pts.event_id LEFT JOIN (SELECT event_id, SUM(points) AS points FROM bounty_points WHERE player_id = 38570 GROUP BY event_id) bonus_b ON bonus_b.event_id = pts.event_id LEFT JOIN event e ON e.id = pts.event_id LEFT JOIN tournament t ON t.id = e.tournament_id LEFT JOIN location l ON l.id = e.location_id ORDER BY e.date DESC, pts.sort_id DESC  
DATE LOCATION PTS RNK TOURNAMENT
03/03/2022 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
05/02/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 38 16 FRAM
05/01/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
03/28/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/27/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 120 3 FRAM
03/26/2019 RT 9 Sports Bar | $300 GTD RELOAD 104 5 FRAM
03/24/2019 Son's of Italy @ 4PM- Reload Special- $300 GTD! 10 - N.SHR
03/24/2019 Son's of Italy | Sunday $300 GTD + FREE WEEK ADDED! 10 - N.SHR
03/21/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/16/2019 Lakeside Tavern - 6PM- $300 GTD 10 - N.SHR
03/16/2019 Memorial Day 50K Special | $1,000 GTD!!!! BPO TOKENS 100 5 N.SHR
03/14/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/11/2019 The Westender- $200 GTD! 47 14 FRAM
03/11/2019 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
03/09/2019 $10,000 Monthly Championship 10 - CHAM
03/07/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
02/28/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 139 1 FRAM
02/21/2019 Caipy Sports Bar | $300 GTD + BPO TOKENS 55 13 FRAM
02/20/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
02/13/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
01/08/2019 RT 9 Sports Bar | $300 GTD RELOAD 73 9 FRAM
01/04/2019 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
01/01/2019 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
12/27/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
12/26/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 44 15 FRAM
12/19/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 115 3 FRAM
12/18/2018 RT 9 Sports Bar | $300 GTD RELOAD 93 7 FRAM
12/14/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/11/2018 RT 9 Sports Bar | $300 GTD RELOAD 52 13 FRAM
12/10/2018 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
12/07/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/06/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
11/09/2018 Am Vets Post 79-- $300 Guaranteed! 104 4 FRAM
04/28/2018 BPO TRAVEL SATELLITE GRAND FINALE 10 - CHAR
04/21/2018 $30K FINALS CHAMPIONSHIP (POINTS) 10 - CHAM
04/14/2018 $10,000 Monthly Championship 10 - CHAR
04/08/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
04/07/2018 $200 GTD Italian Vets 3pm (sat) 141 1 C.MA
04/06/2018 Am Vets Post 79-- $300 Guaranteed! 99 5 FRAM
04/05/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
04/04/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
04/02/2018 The Westender- $200 GTD! 10 - FRAM
04/01/2018 The Westender- $200 GTD Reload Special! 48 14 FRAM
03/31/2018 $200 GTD Italian Vets 3pm (sat) 10 - C.MA
03/31/2018 $200 GTD Italian Vets - 12:30 PM (Sat) 10 - C.MA
03/31/2018 BPO TRAVEL SATELLITE GRAND FINALE 10 - CHAR
03/30/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
03/29/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 91 7 FRAM
03/28/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
03/26/2018 The Westender- $200 GTD! 10 - FRAM
03/25/2018 The Westender- $200 GTD Reload Special! 123 2 FRAM
03/24/2018 $200 GTD Italian Vets 3pm (sat) 10 - C.MA
03/24/2018 Memorial Day 50K Special | $1,000 GTD!!!! BPO TOKENS 10 - N.SHR
03/23/2018 Am Vets Post 79-- $300 Guaranteed! 121 2 FRAM
03/22/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/19/2018 The Westender- $200 GTD! 97 6 FRAM
03/18/2018 The Westender- $200 GTD Reload Special! 63 11 FRAM
03/17/2018 $200 GTD Italian Vets 3pm (sat) 10 - C.MA
03/17/2018 BPO TRAVEL SATELLITE GRAND FINALE 10 - CHAR
03/16/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
03/15/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 106 4 FRAM
03/14/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 91 7 FRAM
03/12/2018 The Westender- $200 GTD! 10 - FRAM
03/11/2018 Maxamillians *Sunday*- 7PM- $300 GTD 50 13 LWLL
03/11/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
03/10/2018 $10,000 Monthly Championship 10 - CHAR
03/09/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
03/08/2018 Legends - $300 GTD Payout + BPO Tokens! 10 - C.MA
03/06/2018 RT 9 Sports Bar | $300 GTD RELOAD 90 7 FRAM
03/04/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
03/02/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
03/01/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
02/27/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
02/26/2018 The Westender- $200 GTD! 88 7 FRAM
02/25/2018 The Westender- $200 GTD Reload Special! 138 1 FRAM
02/19/2018 The Westender- $200 GTD! 90 7 FRAM
02/17/2018 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 87 7 FRAM
02/12/2018 The Westender- $200 GTD! 10 - FRAM
02/08/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
02/04/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
02/01/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 45 14 FRAM
01/21/2018 The Westender- $200 GTD Reload Special! 35 16 FRAM
01/20/2018 $10,000 Monthly Championship 10 - CHAR
01/07/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
01/01/2018 12/30 *CRAZY PINEAPPLE* $200 GTD Liz's Diamond Bar 10 - C.MA
12/31/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
12/30/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 130 1 FRAM
12/30/2017 $10,000 Monthly Championship 10 - CHAR
12/29/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/28/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
12/27/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
12/26/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
12/23/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 81 8 FRAM
12/21/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 100 5 FRAM
12/20/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
12/19/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
12/17/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
12/16/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
12/14/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
12/13/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 84 8 FRAM
12/07/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
12/03/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
12/02/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
12/01/2017 Am Vets Post 79-- $300 Guaranteed! 92 7 FRAM
11/30/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 119 2 FRAM
11/26/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
11/25/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 107 4 FRAM
11/25/2017 Lakeside Tavern - 6PM- $300 GTD 10 - N.SHR
11/24/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/24/2017 *11/29* BLACK FRIDAY SPECIAL WESTENDER- $500 GTD PAYOUT! 10 - FRAM
11/22/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 75 9 FRAM
11/20/2017 The Westender- $200 GTD! 70 10 FRAM
11/19/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
11/18/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
11/18/2017 $10,000 Monthly Championship 10 - CHAR
11/17/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/16/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
11/13/2017 The Westender- $200 GTD! 10 - FRAM
11/12/2017 The Westender- $200 GTD Reload Special! 135 1 FRAM
11/11/2017 Lakeside Tavern - 6PM- $300 GTD 104 4 N.SHR
11/11/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 105 4 FRAM
11/10/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/09/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 74 9 FRAM
11/06/2017 The Westender- $200 GTD! 35 16 FRAM
11/05/2017 The Westender- $200 GTD Reload Special! 39 16 FRAM
11/04/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 118 3 FRAM
11/04/2017 Lakeside Tavern - 6PM- $300 GTD 116 3 N.SHR
11/03/2017 Am Vets Post 79-- $300 Guaranteed! 91 8 FRAM
11/02/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 71 9 FRAM
11/01/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
10/31/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
10/30/2017 The Westender- $200 GTD! 73 9 FRAM
10/29/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
10/28/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
10/27/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
10/23/2017 The Westender- $200 GTD! 10 - FRAM
10/22/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
10/21/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
10/21/2017 Natick Elks- Saturday- $200 GTD PAYOUT! 3:30 PM 10 - FRAM
10/20/2017 Am Vets Post 79-- $300 Guaranteed! 134 1 FRAM
10/19/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 121 2 FRAM
10/17/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
10/16/2017 The Westender- $200 GTD! 105 4 FRAM
10/15/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
10/14/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 84 8 FRAM
10/14/2017 Natick Elks- Saturday- $200 GTD PAYOUT! 3:30 PM 41 15 FRAM
10/12/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
10/11/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
10/09/2017 The Westender- $200 GTD! 10 - FRAM
10/08/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
10/07/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
10/02/2017 The Westender- $200 GTD! 10 - FRAM
10/01/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
09/30/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
09/28/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
09/25/2017 The Westender- $200 GTD! 10 - FRAM
09/24/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
09/23/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
09/21/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
09/18/2017 The Westender- $200 GTD! 37 16 FRAM
09/17/2017 The Westender- $200 GTD Reload Special! 10 - FRAM
09/13/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
09/11/2017 The Westender- $200 GTD! 10 - FRAM
09/10/2017 The Westender- $200 GTD Reload Special! 57 12 FRAM