removed line 
defined('SYSPATH') OR die('No direct script access.');
query to perform