get level of user SELECT * FROM `tbl_transaction` WHERE `amount`='1' AND `transcation_type`='LEVEL INCOME ADDED' and `user_id`!='0' and user_id != ''