Refresh sql fragments place

(cherry picked from commit 02dec2f45d4fed77e9ca1e22ed42b33d0e27098d)

Conflicts:

	Mq.php