now finaly geting mysql query work done