In this select down this is giving this error (FUNCTION base.coordenadas does not exist)
$sql ="select AsText(coordenadas) from cerca_gps where coordenadas(
GeomFromText('POLYGON((-22.970981 -43.217496 ))'),coordenadas )";
How can I fix this error, what am I doing wrong?