Unclosed quotation mark before the character string

phpn000b

Новичок
Unclosed quotation mark before the character string

table1, col - varbinary, id - int

Запрос
"SELECT col FROM table1 WHERE id = 1"
Я получаю примерно сообщение вида:
"яя...........я"
в HEX'e это
010000ff0000ff0000............ff0000

Затем пытаюсь всунуть это же значение в базу мне пишет:
Warning: mssql_query() [function.mssql-query]: message: Unclosed quotation mark before the character string ''. (severity 15) in test.php on line 184
Warning: mssql_query() [function.mssql-query]: message: Line 1: Incorrect syntax near ''. (severity 15) in test.php on line 184
Warning: mssql_query() [function.mssql-query]: Query failed in D:\host\wwwroot\info.php on line 184
 
Сверху