1
vote
$wpdb->get_results(...) returns empty array despite correct query
I was troubleshooting my script that produced an empty array in WordPress with a seemingly healthy MySQL string. It turned out that, unlike the person who asked the question, I used $wpdb->prepare()...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
wpdb × 1183database × 233
mysql × 206
sql × 146
php × 143
query × 139
wp-query × 114
plugin-development × 80
plugins × 57
ajax × 41
post-meta × 41
custom-post-types × 37
posts × 29
functions × 29
customization × 29
users × 26
custom-field × 23
user-meta × 22
table × 22
custom-taxonomy × 21
multisite × 21
array × 21
forms × 18
select × 18
errors × 17