1
vote
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
There are 2 places that could have issues:
Your first wpdb::prepare() here:
// Prepare and execute the count query
$count_query = $wpdb->prepare( $count_sql, ...$query_params );
The initial ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
database × 2555mysql × 397
php × 268
plugins × 250
wpdb × 240
plugin-development × 178
sql × 143
posts × 119
multisite × 119
customization × 111
custom-post-types × 108
query × 104
wp-query × 100
users × 96
migration × 94
forms × 75
options × 72
custom-field × 71
errors × 68
phpmyadmin × 66
table × 62
post-meta × 59
performance × 50
user-meta × 48
functions × 47