Below is a full trace of mysql logs which seem to show that the formula: $this->execPieceByName('ff_InitLib'); //Include BreezingForms Library $db = JFactory::getDBO();//Get Database Object $submittedtoken = ff_getSubmit('bfQuickModexxxxxxx'); $db->setQuery("Select url From bratly_token WHERE token =".$submittedtoken ); $urlToRedirect = $db->loadResult(); JFactory::getApplication()->redirect($urlToRedirect, 'parent'); Is not getting completed with mysql for some reason. See the trace below in mysql where the last entry is: Query Select url From bratly_token WHERE token = Here is the full mysql trace: 323 Query Select url From bratly_token WHERE token = 324 Query SHOW FULL COLUMNS FROM `bratly_token` 325 Query SHOW FULL COLUMNS FROM `bratly_token` 325 Query UPDATE `bratly_facileforms_forms` SET `package`='QuickModeForms',`ordering`='1',`published`='1',`runmode`='0',`name`='QuickFormxxxxxxxxxx',`title`='QuickFormxxxxxxxxxx',`description`='',`class1`='',`class2`='', `width`='400',`widthmode`='0',`height`='500',`heightmode`='0',`pages`='1',`emailntf`='0',`emaillog`='1',`mb_emaillog`='1',`emailxml`='0',`mb_emailxml`='0',`emailadr`='', `dblog`='1',`script1cond`='0',`script1id`='31',`script1code`='',`script2cond`='0',`script2id`='32',`script2code`='',`piece1cond`='0',`piece1id`='1',`piece1code`='', `piece2cond`='0',`piece2code`='',`piece3cond`='0',`piece3id`='6',`piece3code`='',`piece4cond`='2',`piece4code`='$this->execPieceByName(\'ff_InitLib\');\r\n$db = JFactory::getDBO();\r\n$submittedtoken = ff_getSubmit(\"bfQuickModexxxxxxx\");\r\n$db->setQuery(\'Select url From bratly_token WHERE token =\'.$submittedtoken );\r\n$urlToRedirect = $db->loadResult();\r\nJFactory::getApplication()->redirect($urlToRedirect, \'parent\');',`prevmode`='2',`custom_mail_subject`='',`mb_custom_mail_subject`='',`alt_mailfrom`='',`mb_alt_mailfrom`='',`alt_fromname`='',`mb_alt_fromname`='', `mailchimp_email_field`='',`mailchimp_api_key`='',`mailchimp_list_id`='',`mailchimp_double_optin`='1',`mailchimp_mergevars`='',`mailchimp_checkbox_field`='',`mailchimp_text_html_mobile_field`='', `mailchimp_send_errors`='0',`mailchimp_default_type`='text',`mailchimp_unsubscribe_field`='',`mailchimp_delete_member`='0',`salesforce_enabled`='0',`email_type`='0',`mb_email_type`='0', `email_custom_template`='',`mb_email_custom_template`='',`email_custom_html`='1',`mb_email_custom_html`='1',`dropbox_email`='',`dropbox_password`='',`dropbox_folder`='', `dropbox_submission_enabled`='0',`dropbox_submission_types`='',`tags_content`='',`tags_form`='',`autoheight`='0' WHERE `id` = '4' 326 Query SHOW FULL COLUMNS FROM `bratly_token` 329 Query Select url From bratly_token WHERE token = line 329 above has no value for token. . . .