Hot answers tagged

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()...
user avatar
  • 83

Only top scored, non community-wiki answers of a minimum length are eligible