Error Backtrace

function systemError select * from station : ERROR: syntax error at end of input LINE 1: ...on where ip_address = '' and domain_id = 0 and suffix_id = ^ )
{
     file: /home/dcms/sb/d7/sites/all/modules/sameboat/include/DSDB.php
     line: 223
}

was called by:
function nquery select * from station , where ip_address = '' and domain_id = 0 and suffix_id = )
{
     file: /home/dcms/sb/d7/sites/all/modules/sameboat/include/DSDB.php
     line: 524
}

was called by:
function getStation , 0, )
{
     file: /home/dcms/sb/d7/sites/all/modules/sameboat/include/DSDB.php
     line: 474
}

was called by:
function cause 12020 )
{
     file: /home/dcms/perlcgi/index.php
     line: 36
}