Please how to do that LEFT JOIN?
I have a column named r.id which has values like s_2, s_3 etc... and also values with no prefixes e.g. 2, 3 etc ...
I am trying to join another table where the corresponding value has no prefix, e.g. 2, 3 etc ... but the matching r.value does.
$topsongs ="SELECT r.total as tot, r.votes, s.id as id, s.name as name FROM songs s
LEFT JOIN ratings AS r ON(r.id = s.id)";