ver 3.6.5 bug fix with cacheing - removing/replacing deprecated wpdb function causes failure of single quote in text. Fixed.  also double quotes in csv.

git-svn-id: https://plugins.svn.wordpress.org/amr-users/trunk@765296 b8457f37-d9ea-0310-8a92-e5e31aec5664