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

(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 = 39569 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 39569 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 = 39569 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/06/2020 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
01/17/2020 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
01/07/2020 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
12/13/2019 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
11/15/2019 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
10/29/2019 Lakeside Tavern (TUES)- $300 Guaranteed 71 9 N.SHR
10/22/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
10/08/2019 Lakeside Tavern (TUES)- $300 Guaranteed 72 9 N.SHR
09/20/2019 Son's Of Italy $600 GTD FRIDAYS 57 13 N.SHR
09/10/2019 Lakeside Tavern (TUES)- $300 Guaranteed 43 15 N.SHR
09/03/2019 Lakeside Tavern (TUES)- $300 Guaranteed 61 11 N.SHR
08/27/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
07/30/2019 Lakeside Tavern (TUES)- $300 Guaranteed 89 7 N.SHR
07/12/2019 Son's Of Italy $600 GTD FRIDAYS 103 6 N.SHR
07/02/2019 Lakeside Tavern (TUES)- $300 Guaranteed 62 11 N.SHR
06/25/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
06/18/2019 Lakeside Tavern (TUES)- $300 Guaranteed 94 6 N.SHR
06/11/2019 Lakeside Tavern (TUES)- $300 Guaranteed 88 7 N.SHR
06/04/2019 Lakeside Tavern (TUES)- $300 Guaranteed 56 12 N.SHR
05/28/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
05/24/2019 Son's Of Italy $600 GTD FRIDAYS 69 11 N.SHR
05/14/2019 Lakeside Tavern (TUES)- $300 Guaranteed 40 15 N.SHR
05/07/2019 Lakeside Tavern (TUES)- $300 Guaranteed 71 9 N.SHR
04/29/2019 K PUB | $300 GTD | BPO TOKENS 55 13 N.SHR
04/23/2019 Lakeside Tavern (TUES)- $300 Guaranteed 80 8 N.SHR
04/16/2019 Lakeside Tavern (TUES)- $300 Guaranteed 62 11 N.SHR
04/09/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
04/02/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
03/30/2019 $10,000 Monthly Championship 10 - CHAM
03/26/2019 Lakeside Tavern (TUES)- $300 Guaranteed 89 7 N.SHR
03/12/2019 Lakeside Tavern (TUES)- $300 Guaranteed 134 1 N.SHR
03/08/2019 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
03/05/2019 Lakeside Tavern (TUES)- $300 Guaranteed 47 14 N.SHR
02/26/2019 Lakeside Tavern (TUES)- $300 Guaranteed 89 7 N.SHR
02/19/2019 Lakeside Tavern (TUES)- $300 Guaranteed 63 11 N.SHR
02/18/2019 Columbus Day Special | 3PM START! 10 - N.SHR
02/05/2019 Lakeside Tavern (TUES)- $300 Guaranteed 46 14 N.SHR
01/22/2019 Lakeside Tavern (TUES)- $300 Guaranteed 92 6 N.SHR
01/21/2019 LABOR DAY SPECIAL $1K + BPO HOTEL/SEAT PKG! 10 - N.SHR
01/15/2019 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
01/12/2019 $10,000 Monthly Championship 10 - CHAM
01/04/2019 Son's Of Italy $600 GTD FRIDAYS 96 7 N.SHR
12/18/2018 Lakeside Tavern (TUES)- $300 Guaranteed 134 1 N.SHR
12/14/2018 Son's Of Italy $600 GTD FRIDAYS 10 - N.SHR
11/27/2018 Lakeside Tavern (TUES)- $300 Guaranteed 53 13 N.SHR
11/20/2018 Lakeside Tavern (TUES)- $300 Guaranteed 71 9 N.SHR
11/10/2018 $10,000 Monthly Championship 10 - CHAM
11/05/2018 K PUB | $300 GTD | BPO TOKENS 10 - N.SHR
10/30/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
10/29/2018 K PUB | $300 GTD | BPO TOKENS 138 1 N.SHR
10/23/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
10/16/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
09/25/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
09/11/2018 Lakeside Tavern (TUES)- $300 Guaranteed 96 6 N.SHR
09/04/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
08/28/2018 Lakeside Tavern (TUES)- $300 Guaranteed 75 9 N.SHR
08/21/2018 Lakeside Tavern (TUES)- $300 Guaranteed 57 13 N.SHR
08/14/2018 Lakeside Tavern (TUES)- $300 Guaranteed 40 16 N.SHR
08/07/2018 Lakeside Tavern (TUES)- $300 Guaranteed 10 - N.SHR
07/31/2018 Lakeside Tavern (TUES)- $300 Guaranteed 58 12 N.SHR
07/10/2018 Lakeside Tavern (TUES)- $300 Guaranteed 50 14 N.SHR
06/29/2018 Son's Of Italy $600 GTD FRIDAYS 73 10 N.SHR
06/05/2018 Lakeside Tavern (TUES)- $300 Guaranteed 91 7 N.SHR