exporting selected hands from db

I have PT3 installed. I'm trying to use the sql below that I found in an old post in order to export hands from a date range. I hope to use this in order to move them to a database on another computer to keep the 2 in synch pending the selective export functionality.
The sql doesn't work. I get the message that "relation holdem_hand_histories does not exist"
Is this sql just old PT2 sql? Is there an updated PT3 query??
select history from holdem_hand_histories, holdem_hand_player_detail, player, holdem_hand_summary where holdem_hand_histories.id_hand = holdem_hand_player_detail.id_hand and holdem_hand_summary.id_hand = holdem_hand_histories.id_hand and holdem_hand_player_detail.id_player = player.id_player and player.player_name = 'Your Username Here' and holdem_hand_summary.date_played >= '2009-Jan-01';
The sql doesn't work. I get the message that "relation holdem_hand_histories does not exist"
Is this sql just old PT2 sql? Is there an updated PT3 query??
select history from holdem_hand_histories, holdem_hand_player_detail, player, holdem_hand_summary where holdem_hand_histories.id_hand = holdem_hand_player_detail.id_hand and holdem_hand_summary.id_hand = holdem_hand_histories.id_hand and holdem_hand_player_detail.id_player = player.id_player and player.player_name = 'Your Username Here' and holdem_hand_summary.date_played >= '2009-Jan-01';