SQL fixed

check your SQL it don't seems pulling the correctly