哪个是正确的语法?
$current_renewal_date = $wpdb->get_results(
"
SELECT expiry_date
FROM bid_tag
WHERE id = $renewal_tag_id
LIMIT 1
"
);
或者
$current_renewal_date = $wpdb->get_results(
"
SELECT expiry_date
FROM bid_tag
WHERE id = {$renewal_tag_id}
LIMIT 1
"
);