Data cannot be queried after mysql preprocessing

when I query a piece of data, I cannot query the data after using parameter binding:
the following is the sql to be queried

$sql = "SELECT `id` FROM `ct_collection` where `issue`=:issue LIMIT 1";

Parameter binding is: "050"

SQL: [90] SELECT `id` FROM `ct_collection` where `issue`=:issue LIMIT 1
Params:  1
Key: Name: [6] :issue
paramno=0
name=[6] ":issue"
is_param=1
param_type=2

I take it directly to mysql and execute it, but I just can"t find it through the program. Please advise

Mar.11,2021

take a look at the type of the issue field, whether it is a numeric type in php, causing the execution statement to become: issue=50
before executing the sql statement, output the value of the bound variable to the debug log and check it out.

Menu