Fix: sql request not compatible with pgsql

Conflicts:
	htdocs/core/ajax/ziptown.php