The following line of code in function services_resource_build_index_query (services.module line 453):

$sql = "SELECT $fields FROM {$table} $where ORDER BY $order";

should be something like this:

$sql = "SELECT $fields FROM {{$table}} $where ORDER BY $order";

otherwise PHP removes the {} surrounding the table name, which causes Drupal not to prefix the table name with the database prefix.

Comments

kylebrowning’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.