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

(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 = 12485 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 12485 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 = 12485 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/23/2023 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
09/29/2022 Caipy Sports Bar | $300 GTD + BPO TOKENS 103 4 FRAM
03/10/2022 Caipy Sports Bar | $300 GTD + BPO TOKENS 10 - FRAM
02/26/2022 $150 DEEPSTACK! 10 - CHAR
02/17/2022 Walpole VFW 10 - CHAR
10/13/2019 The Westender- $200 GTD Reload Special! 69 10 FRAM
10/05/2019 $60 Cheapstack @ WALPOLE VFW 10 - CHAR
09/13/2019 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
09/02/2019 $180 - Veteran's Deepstack 73 11 CHAR
08/11/2019 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
07/21/2019 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 104 5 C.MA
05/18/2019 $10,000 GUARANTEED SUPERSTACKED EVENT! 137 3 CHAR
02/18/2019 $80 Mini Mega -Memorial Day 10 - CHAR
02/15/2019 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
02/09/2019 $60 Cheapstack @ WALPOLE VFW 122 2 CHAR
01/25/2019 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
01/11/2019 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
12/26/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 93 7 FRAM
12/22/2018 Memorial Day $80 MINI-MEGA 117 2 CHAR
12/15/2018 Italian American Club (Walpole) 10 - CHAR
11/30/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
09/07/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
08/03/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 129 3 S.MA
06/29/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
06/23/2018 $60 Cheapstack @ WALPOLE VFW 52 13 CHAR
06/08/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
05/26/2018 $60 Cheapstack @ WALPOLE VFW 134 1 CHAR
05/12/2018 $60 Cheapstack @ WALPOLE VFW 119 3 CHAR
05/12/2018 Saturday @ PNC CLUB- 4PM- $300 GTD PAYOUT 10 - S.MA
05/04/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
04/27/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 10 - S.MA
04/13/2018 PNC CLUB| $400 GTD + BPO TOKENS | FRIDAY NIGHT 114 5 S.MA
04/04/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 91 7 FRAM
02/14/2018 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 51 13 FRAM
02/02/2018 Am Vets Post 79-- $300 Guaranteed! 84 8 FRAM
01/12/2018 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/30/2017 $10,000 Monthly Championship 10 - CHAR
12/29/2017 Am Vets Post 79-- $300 Guaranteed! 87 8 FRAM
12/22/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/20/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 53 13 FRAM
12/13/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 42 15 FRAM
12/08/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
12/05/2017 RT 9 Sports Bar | $300 GTD RELOAD 53 13 FRAM
11/25/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 10 - FRAM
11/22/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 89 8 FRAM
11/21/2017 RT 9 Sports Bar | $300 GTD RELOAD 10 - FRAM
11/20/2017 The Westender- $200 GTD! 10 - FRAM
11/18/2017 Framingham Elks | Tuesday | $300 GTD + BPO TOKENS! 58 12 FRAM
11/17/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/15/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 63 11 FRAM
11/10/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/09/2017 Caipy Sports Bar | $300 GTD + BPO TOKENS 137 1 FRAM
11/08/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 132 1 FRAM
11/03/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
11/01/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 133 1 FRAM
10/27/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
10/25/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 55 12 FRAM
10/18/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 56 12 FRAM
09/27/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 10 - FRAM
09/23/2017 Natick Elks- Saturday- $200 GTD PAYOUT! 3:30 PM 46 14 FRAM
09/22/2017 Am Vets Post 79-- $300 Guaranteed! 123 2 FRAM
09/20/2017 $300 GTD--China Gourmet- 12:30 PM -25K/ BPO TOKENS! 55 12 FRAM
09/15/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
09/01/2017 Am Vets Post 79-- $300 Guaranteed! 10 - FRAM
01/14/2010 $200 GTD Liz Diamond - Hopedale (Sun) 69 10 C.MA
01/12/2010 Bellingham Sportsman Club (tues) 10 - C.MA
12/29/2009 Bellingham Sportsman Club (tues) 119 3 C.MA