<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello everyone.<div dir="ltr" class="gmail_signature"></div><div><br></div><div>I am trying to do a database lookup usingĀ avp_db_query() and getting an error in my log:</div><div><br></div><div><div>ERROR:core:get_cmd_fixups: Variable in param [2] is not a string</div><div>ERROR:core:do_action: Failed to get fixups for command <avp_db_query></div></div><div><br></div><div>It seems the query is erroring as $rc is always -1</div><div><br></div><div>CUSTOM_LOG: DB Query Return Code: -1<br></div><div><br></div><div>I have a database connection setup with a numerical ID.</div><div>This is my avp_db_query() line:</div><div><br></div><div>avp_db_query("SELECT customer FROM customer_sbcs WHERE sbc1 = '$avp(sbc)'",$avp(custID), 1);<br></div><div><br></div><div>$avp(sbc) is set just before and has a valid text value that should match.</div><div><br></div><div>Is anyone able to tell me where I am going wrong please?</div><div><br></div><div>Many thanks!</div><div>Mark.</div><div><br></div></div></div></div></div></div>