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

(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 = 23067 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 23067 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 = 23067 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
12/20/2018 Legends - $300 GTD Payout + BPO Tokens! 100 5 C.MA
01/26/2018 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 41 16 C.MA
11/20/2017 Millerville Monday | $300 GTD + BPO TOKENS! 49 14 C.MA
11/05/2017 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 61 12 C.MA
10/29/2017 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 100 6 C.MA
06/23/2017 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
03/23/2017 Legends - $300 GTD Payout + BPO Tokens! 10 - C.MA
03/06/2017 Millerville Monday | $300 GTD + BPO TOKENS! 92 7 C.MA
02/24/2017 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
02/10/2017 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 47 15 C.MA
12/20/2016 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 10 - C.MA
12/15/2016 Legends - $300 GTD Payout + BPO Tokens! 10 - C.MA
10/14/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
09/27/2016 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 70 10 C.MA
09/25/2016 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
08/28/2016 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
08/23/2016 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 44 15 C.MA
08/21/2016 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
08/16/2016 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 76 9 C.MA
08/14/2016 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
08/12/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
08/08/2016 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
08/01/2016 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
07/22/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
07/18/2016 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
06/17/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
06/07/2016 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 66 11 C.MA
02/19/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
02/10/2016 *CANCELLED 2/17** ALUMNI 10 - C.MA
01/15/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
01/11/2016 Millerville Monday | $300 GTD + BPO TOKENS! 135 1 C.MA
01/01/2016 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 65 11 C.MA
12/20/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
12/19/2015 New Year's Day $10,000 GTD SUPERSTACK 10 - CHAR
12/15/2015 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 101 5 C.MA
12/11/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
12/01/2015 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 10 - C.MA
11/30/2015 Millerville Monday | $300 GTD + BPO TOKENS! 96 6 C.MA
11/29/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
11/25/2015 Ev'rybody's Pub | $300 GTD | BPO TOKENS 10 - RI
11/24/2015 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 77 9 C.MA
11/23/2015 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
11/20/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
11/16/2015 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
11/15/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 49 13 C.MA
11/08/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
11/06/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
11/05/2015 Legends - $300 GTD Payout + BPO Tokens! 92 7 C.MA
11/04/2015 Walpole VFW 10 - CHAR
11/03/2015 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 117 3 C.MA
11/02/2015 Millerville Monday | $300 GTD + BPO TOKENS! 10 - C.MA
10/30/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
10/27/2015 ITAM **NEW SPOT**- $300 GTD+ BPO TOKENS! 59 12 C.MA
10/26/2015 Millerville Monday | $300 GTD + BPO TOKENS! 106 4 C.MA
10/18/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
10/08/2015 Legends - $300 GTD Payout + BPO Tokens! 10 - C.MA
09/13/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 43 15 C.MA
09/11/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
09/06/2015 140 PUB---$400 Guaranteed--- RELOAD SPECIAL! 10 - C.MA
08/01/2015 $30 Foxwoods Satellite 10 - CHAR
07/31/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 68 11 C.MA
07/03/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
07/02/2015 Legends - $300 GTD Payout + BPO Tokens! 48 14 C.MA
06/19/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
06/12/2015 Pre 4th Of July- 50K Stack Special- $1000 GTD+ BPO TOKENS! 10 - C.MA
12/17/2012 Bar Poker Open $120 FINALE-5 PKGS GTD + WSOP Moneymaker Seat!! 10 - CHAR
11/12/2012 VETERAN'S DAY SPECIAL Mega Staxxx 51 13 CHAR
07/27/2012 $2K GTD! MINI MEGA- WALPOLE 103 4 CHAR
04/02/2012 Home Plate Bay Street Grill 10 - S.MA
03/26/2012 Home Plate Bay Street Grill 10 - S.MA
03/19/2012 Home Plate Bay Street Grill 10 - S.MA
03/12/2012 Patriots bar & Grill 10 - C.MA
03/05/2012 Home Plate Bay Street Grill 10 - S.MA
02/27/2012 Home Plate Bay Street Grill 79 9 S.MA