get_var not returning a value when the field contains an apostrophe

get_var not returning a value when the field contains an apostrophe

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)