FYI Here's the stack for the PDO exception:
Reason: /var/www/deployed/services-933/fuel/core/classes/database/pdo/connection.php 94: invalid data source name
Source: invalid data source name
#0 /var/www/deployed/services-933/fuel/core/classes/database/pdo/connection.php(199): Fuel\Core\Database_PDO_Connection->connect()
#1 /var/www/deployed/services-933/fuel/core/classes/database/query.php(256): Fuel\Core\Database_PDO_Connection->query(1, 'SELECT * FROM s...', false)
#2 /var/www/deployed/services-933/fuel/app/classes/model/session.php(148): Fuel\Core\Database_Query->execute()
#3 /var/www/deployed/services-933/fuel/app/classes/model/accesspoint.php(297): Model_Session::findByPrimaryKey('332017', 'AAAAAFKD1eI=')
...
And here is the calling code:
$parameters = array(
'access_point_id' => $access_point_id,
'session_id' => $session_id
);
$qry = \Fuel\Core\DB::query('
SELECT * FROM session
WHERE access_point_id=:access_point_id AND id=:session_id');
$rs = $qry->parameters( $parameters )->execute();
and just a side note that pk is the auto increment value and defined like so in the model:
protected static $_primary_key = 'pk';
It looks like you're new here. If you want to get involved, click one of these buttons!