cfqueryparam issue
I'm getting the following error when i put matching (varchar = cf_sql_varchar etc.) cfqueryparam tag within cfquery tag that uses order by clause!
Error Executing Database Query.
Communication link failure: Unknown command
As I can see and judging by Adobe's livedocs documentation, cfqueryparam tag can not be used side by side with the order by clause !??
<cfquery name="topic" datasource="datasource">
SELECT title, desc, img
FROM topic
WHERE CAT = <cfqueryparam value="science" cfsqltype="cf_sql_varchar" maxlength="45"> OR CAT = <cfqueryparam value="All" cfsqltype="cf_sql_varchar" maxlength="45">
ORDER BY DATE DESC LIMIT 10
</cfquery>
I am running CF MX 7.0.2, MySQL 5.0.41 and MySQL ODBC 3.51 Driver
