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

(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 = 11365 GROUP BY event_id) pts LEFT JOIN (SELECT event_id, SUM(points) AS points FROM participation_points WHERE player_id = 11365 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 = 11365 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
10/15/2010 Lakeville Lions Club 10 - S.MA
09/29/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
09/22/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 48 15 S.MA
07/14/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
07/07/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 95 8 S.MA
06/11/2010 The Back Nine Pub 10 - S.MA
05/31/2010 Home Plate Bay Street Grill 10 - S.MA
05/21/2010 The Back Nine Pub 113 4 S.MA
01/18/2010 Home Plate Bay Street Grill 52 15 S.MA
01/15/2010 The Back Nine Pub 10 - S.MA
01/13/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
01/12/2010 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 10 - S.MA
01/08/2010 The Back Nine Pub 10 - S.MA
01/06/2010 Wednesdays SMA- $300 GTD + BPO TOKENS! 105 7 S.MA
12/21/2009 Home Plate Bay Street Grill 10 - S.MA
12/17/2009 Jockey Club Thursdays 10 - S.MA
12/16/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
12/15/2009 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 10 - S.MA
12/11/2009 The Back Nine Pub 10 - S.MA
12/07/2009 Home Plate Bay Street Grill 10 - S.MA
12/06/2009 North Bowl 10 - S.MA
12/04/2009 The Back Nine Pub 10 - S.MA
12/02/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
12/01/2009 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 55 14 S.MA
11/25/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
11/24/2009 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 10 - S.MA
11/19/2009 The Moose Cabin 60 13 S.MA
11/17/2009 The Moose Cabin 10 - S.MA
11/16/2009 Home Plate Bay Street Grill 10 - S.MA
11/14/2009 Red's Kitchen-$300 GTD + BPO TOKENS- 6:30PM 68 12 RI
11/12/2009 Jockey Club Thursdays 10 - S.MA
11/10/2009 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 10 - S.MA
11/09/2009 Home Plate Bay Street Grill 67 12 S.MA
11/05/2009 Jockey Club Thursdays 10 - S.MA
11/02/2009 Home Plate Bay Street Grill 81 9 S.MA
10/29/2009 Jockey Club Thursdays 10 - S.MA
10/28/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
10/23/2009 The Back Nine Pub 87 8 S.MA
10/21/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA
10/20/2009 *7/12* PNC TUESDAYS- $300 Guaranteed! *BPO Tokens* 103 6 S.MA
10/14/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 50 - S.MA
10/07/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 90 8 S.MA
09/30/2009 Wednesdays SMA- $300 GTD + BPO TOKENS! 10 - S.MA