If you are not sure which plugin this is that has the DB Query coding problem then use the BPS Pro Pro-Tools >>> String Finder tool (not the DB String Finder tool) to find out which plugin this is. Use the search string below. Copy your website’s folder path that you see displayed to you on the String Finder page, add /wp-content/plugins/ to the folder path and click the Find String button.
Search String: wpmlqueue
Search Path: /xxxxx/wp-content/plugins/
Once you find out which plugin this is then post the name of that plugin and I will download it and look at the code to see what the coding mistake is in that plugin.