Admin 'update' page URL parameter doesn't show; mysql syntax error
Admin 'update' page displays differently when accessed from 'search results > update' and 'search results > detail > update'.
When accessed from 'search results > update', the data displays as it should, with correct URL parameter.
When accessed from 'search results > detail > update', there is no URL parameter and the following error message displays:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 10' at line 1
Haven't been able to find any syntax errors, and various 'get' and 'post' iterations never display the URL parameter.
Looks to me like the error should be in the detail page form, since the update page displays incorrectly only when accessed from that page. However, adjustments to the form method and/or 'update' button return the same errors.
Do both of these issues result from the same problem, or are there multiple problems here?
UPDATE: Changing the $_GET in the mysql query code at top of 'update' page eliminated the syntax error, but of course none of the data displays when the 'update' page is accessed from either the 'results' page or the 'detail' page.
Files attached. Live view details in private message.