AnsweredAssumed Answered

sql query error with hyphen

Question asked by YellowTulips YellowTulips on Aug 5, 2015
Latest reply on Aug 5, 2015 by YellowTulips YellowTulips
Code:
$varContactId = $bean->contact_id_c;
   $QueryPoints = $GLOBALS['db'] -> query("SELECT 'points_c' FROM 'contacts_cstm' WHERE 'id_c' = $varContactId LIMIT 0,1;");
Log:
08/05/15 08:49:47 [6648][1][FATAL]  Query Failed: SELECT 'points_c' FROM 'contacts_cstm' WHERE 'id_c' = 1cc0577a-06f6-97be-908f-55c0995b119f LIMIT 0,1;: MySQL error 1054: Unknown column '1cc0577a' in 'where clause'
Anybody knows why is this happening?

6.5.21 CE running on Local machine using Xampp

Outcomes