(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 = 28725  

(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 = 28725 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 28725 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 = 28725 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
05/02/2022 Moose MONDAY - $300 GTD + BPO Tokens! 10 - FRAM
02/18/2020 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
11/22/2019 Am Vets Post 79-- $300 Guaranteed! 98 5 FRAM
09/28/2019 $200 Bar Poker Open Travel Satellite FINALE 10 - CHAR
08/28/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
06/26/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/08/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 66 10 FRAM
04/30/2019 RT 9 Sports Bar | $300 GTD RELOAD 74 9 FRAM
03/30/2019 ***CANCELLED 3/14****$40 BPO TRAVEL SATELLITE 10 - CHAR
03/13/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
03/06/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
03/05/2019 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
02/27/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 95 6 FRAM
02/22/2019 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
02/20/2019 KOC #1829 | Wednesdays | $300 GTD + BPO TOKENS! 130 1 N.SHR
02/16/2019 ***CANCELLED 3/14****$40 BPO TRAVEL SATELLITE 10 - CHAR
02/03/2019 The Westender- $200 GTD Reload Special! 10 - FRAM
01/29/2019 RT 9 Sports Bar | $300 GTD RELOAD 73 9 FRAM
01/27/2019 The Westender- $200 GTD Reload Special! 10 - FRAM
01/25/2019 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
01/23/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 42 15 FRAM
01/22/2019 RT 9 Sports Bar | $300 GTD RELOAD 59 12 FRAM
01/16/2019 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
11/28/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
11/10/2018 $10,000 Monthly Championship 10 - CHAM
11/07/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
10/24/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 134 1 FRAM
10/23/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
10/16/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
10/09/2018 RT 9 Sports Bar | $300 GTD RELOAD 138 1 FRAM
09/25/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
09/19/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
09/15/2018 ***CANCELLED 3/14****$40 BPO TRAVEL SATELLITE 10 - CHAR
09/12/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
09/05/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
09/03/2018 Veteran's Day Mini Mega 50 13 CHAR
08/29/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
08/14/2018 RT 9 Sports Bar | $300 GTD RELOAD 119 3 FRAM
08/12/2018 The Westender- $200 GTD Reload Special! 108 4 FRAM
08/08/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 64 11 FRAM
08/01/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
07/25/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
07/20/2018 Am Vets Post 79-- $300 Guaranteed! 96 6 FRAM
07/18/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
07/10/2018 RT 9 Sports Bar | $300 GTD RELOAD 122 2 FRAM
07/09/2018 The Westender- $200 GTD! 46 14 FRAM
07/07/2018 $60 Cheapstack @ WALPOLE VFW 70 10 CHAR
07/06/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
06/26/2018 RT 9 Sports Bar | $300 GTD RELOAD 88 8 FRAM
06/25/2018 The Westender- $200 GTD! 95 6 FRAM
06/20/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
06/13/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/30/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/27/2018 The Westender- $200 GTD Reload Special! 87 7 FRAM
05/23/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/15/2018 RT 9 Sports Bar | $300 GTD RELOAD 47 14 FRAM
05/10/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
05/08/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
05/07/2018 The Westender- $200 GTD! 63 10 FRAM
05/02/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 101 5 FRAM
04/28/2018 BPO TRAVEL SATELLITE GRAND FINALE 10 - CHAR
04/24/2018 RT 9 Sports Bar | $300 GTD RELOAD 63 11 FRAM
04/23/2018 The Westender- $200 GTD! 115 3 FRAM
04/20/2018 Am Vets Post 79-- $300 Guaranteed! 92 6 FRAM
04/16/2018 The Westender- $200 GTD! 41 15 FRAM
04/10/2018 RT 9 Sports Bar | $300 GTD RELOAD 120 2 FRAM
04/09/2018 The Westender- $200 GTD! 87 7 FRAM
04/04/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 116 3 FRAM
04/03/2018 RT 9 Sports Bar | $300 GTD RELOAD 117 3 FRAM
04/02/2018 The Westender- $200 GTD! 10 - FRAM
03/29/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/28/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
03/26/2018 The Westender- $200 GTD! 62 11 FRAM
03/22/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 107 4 FRAM
03/16/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
03/15/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
03/12/2018 The Westender- $200 GTD! 10 - FRAM
03/05/2018 The Westender- $200 GTD! 10 - FRAM
03/02/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
02/27/2018 RT 9 Sports Bar | $300 GTD RELOAD 64 11 FRAM
02/18/2018 The Westender- $200 GTD Reload Special! 10 - FRAM
02/17/2018 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 55 12 FRAM
02/17/2018 $10,000 Monthly Championship 10 - CHAR
02/13/2018 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
02/12/2018 The Westender- $200 GTD! 121 2 FRAM
01/26/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
01/25/2018 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
01/24/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 118 2 FRAM
01/12/2018 Am Vets Post 79-- $300 Guaranteed! 139 1 FRAM
01/05/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/29/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/28/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
12/19/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
12/08/2017 Am Vets Post 79-- $300 Guaranteed! 54 13 FRAM
11/14/2017 RT 9 Sports Bar | $300 GTD RELOAD 57 12 FRAM
11/11/2017 Memorial Day 50K Special | $1,000 GTD!!!! BPO TOKENS 10 - N.SHR
10/31/2017 RT 9 Sports Bar | $300 GTD RELOAD 39 16 FRAM
10/28/2017 TEAM POKER CHAMPIONSHIP 11 - $15,000 GTD! 10 - CHAR
10/25/2017 KOC #1829 | Wednesdays | $300 GTD + BPO TOKENS! 10 - N.SHR
10/17/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
09/19/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
09/12/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
09/05/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
08/01/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
07/31/2017 The Westender- $200 GTD! 41 15 FRAM
07/26/2017 Walpole VFW 10 - CHAR
07/24/2017 The Westender- $200 GTD! 10 - FRAM
07/21/2017 Son's Of Italy $600 GTD FRIDAYS 101 6 N.SHR
07/08/2017 Natick Elks- Saturday- $200 GTD PAYOUT! 3:30 PM 10 - FRAM
07/06/2017 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 138 1 N.SHR
07/03/2017 $120 Fourth Of July Maxx Staxx 115 3 CHAR
07/01/2017 Natick Elks- Saturday- $200 GTD PAYOUT! 3:30 PM 10 - FRAM
06/27/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
02/02/2017 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 10 - N.SHR
01/26/2017 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 10 - N.SHR
11/05/2016 $30K FINALS CHAMPIONSHIP (POINTS) 10 - CHAM
09/15/2016 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 10 - N.SHR
08/02/2016 $300 GTD @ Sports Legends Pub- BPO TOKENS! 10 - RI
08/01/2016 The Westender- $200 GTD! 10 - FRAM
07/24/2016 The Westender- $200 GTD Reload Special! 120 2 FRAM
07/21/2016 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
07/20/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
07/19/2016 *2/14* Speaker's- Double Stacks/Double Payouts! 10 - FRAM
07/18/2016 The Westender- $200 GTD! 133 1 FRAM
07/17/2016 The Westender- $200 GTD Reload Special! 90 7 FRAM
07/14/2016 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 123 2 N.SHR
07/11/2016 The Westender- $200 GTD! 10 - FRAM
07/09/2016 $10,000 Monthly Championship 10 - CHAM
07/08/2016 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
07/06/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
07/05/2016 *2/14* Speaker's- Double Stacks/Double Payouts! 107 4 FRAM
06/30/2016 Son's of Italy | Thursdays | $300 GTD + BPO Tokens 111 4 N.SHR
06/29/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
06/27/2016 The Westender- $200 GTD! 94 6 FRAM
06/26/2016 Maxamillians *Sunday*- 7PM- $300 GTD 47 14 LWLL
06/26/2016 Joker Sundays | $300 GTD + FREE WEEK 10 - LWLL
06/25/2016 Memorial Day 50K Special | $1,000 GTD!!!! BPO TOKENS 95 7 N.SHR
06/24/2016 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
06/22/2016 American Civic League | WED| $300 GTD +BPO TOKENS 10 - LWLL
06/20/2016 The Westender- $200 GTD! 87 8 FRAM
06/17/2016 Am Vets Post 79-- $300 Guaranteed! 136 1 FRAM
06/16/2016 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
06/15/2016 American Civic League | WED| $300 GTD +BPO TOKENS 10 - LWLL
06/13/2016 K PUB | $300 GTD | BPO TOKENS 113 5 N.SHR
06/12/2016 The Westender- $200 GTD Reload Special! 10 - FRAM
06/08/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 109 4 FRAM
06/06/2016 The Westender- $200 GTD! 98 6 FRAM
06/03/2016 Am Vets Post 79-- $300 Guaranteed! 74 9 FRAM
06/01/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/25/2016 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
05/12/2016 Caipy Sports Bar | $300 GTD + BPO TOKENS 134 1 FRAM
04/22/2016 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
04/18/2016 K PUB | $300 GTD | BPO TOKENS 10 - N.SHR
04/18/2016 K Pub Kitchen & Bar | $300 GTD | BPO TOKENS 10 - N.SHR
06/13/2015 FANZ (Sat) 10 - FRAM
06/09/2015 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
06/04/2015 Caipy Sports Bar | $300 GTD + BPO TOKENS 87 8 FRAM
11/29/2013 $10,000 GUARANTEED SUPERSTACKED EVENT! 10 - CHAR
11/25/2013 President’s Day Bounty 10 - CHAR
03/18/2013 *3/28* The Westender Sports Bar- DSDP 10 - FRAM