deal with joined database results

This change corrects a problem when you deal with joined sql results. The field name came in this way "table.field" and  ended parsed to "table[field]".

With this change you can use this way:  {$value["table.field"]} without problems.