We are using the card name as the card_type. In this case, some names have embedded apostrophe's, such as "Shipbuilder's Guild".
When calling $this->cards->getCardsOfType( "Shipbuilder's Guild" ), I hit a SQL injection error:
Unexpected error: Propagating error from GS 1 (method: createGame): Fatal error during harbourjc setup: Error while processing SQL request (leto.boardgamearena.com via TCP/IP): SELECT card_id id, card_type type, card_type_arg type_arg, card_location location, card_location_arg location_arg FROM card WHERE card_type='Shipbuilder's Guild' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Guild'' at line 1
When calling $this->cards->getCardsOfType( "Shipbuilder's Guild" ), I hit a SQL injection error:
Unexpected error: Propagating error from GS 1 (method: createGame): Fatal error during harbourjc setup: Error while processing SQL request (leto.boardgamearena.com via TCP/IP): SELECT card_id id, card_type type, card_type_arg type_arg, card_location location, card_location_arg location_arg FROM card WHERE card_type='Shipbuilder's Guild' You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Guild'' at line 1