The issue arises from the WP Statistics WordPress plugin's improper use of the WordPress esc sql() function on a field not delimited by quotes, without first preparing the query. Furthermore, a page intended for administrator access was also accessible to any visitor, including unauthenticated ones.