Details
Description
Using __toString method of Zend_DB_Select class, it calls the limit function at Zend_Db_Adapter_Pdo_Mssql with params:
sql = SELECT "noticies".* FROM "noticies" ORDER BY "NOTICIES"."ID" ASC
count = 1
offset = 0
Generates a sql statement like:
SELECT *
FROM (SELECT TOP 1 *
FROM (SELECT TOP 1 "noticies".*
FROM "noticies"
ORDER BY "NOTICIES"."ID" ASC) AS inner_tbl
ORDER BY "NOTICIES"."ID" DESC) AS outer_tbl
ORDER BY "NOTICIES"."ID" asc
Producing the error:
SQLSTATE[HY000]: General error: 10007 The column prefix 'NOTICIES' does not match with a table name or alias name used in the query. [10007] (severity 5) [(null)]
File: Pdo.php, Line: 238
Please evaluate and categorize as necessary.