SELECT command denied to user 'mhdbroot'@'10.154.96.9' for table 'yyd_borrow_tender'ִSQL!select p1.id, p1.user_id, p1.`status`, p1.borrow_nid, p1.nid, p1.account_tender, p1.account, p1.change_status, p1.change_userid, p1.tender_status, p1.tender_nid, p1.recover_account_all, p1.recover_account_interest, p1.recover_account_yes, p1.recover_account_interest_yes, p1.recover_account_capital_yes, p1.recover_account_wait, p1.recover_account_interest_wait, p1.recover_account_capital_wait, p1.recover_times, p1.contents, p1.auto_status, p1.web_status, p1.addtime, p1.addip, p1.flow_count, p1.flow_status, p2.borrow_period, p2.user_id AS b_user_id, p2.name AS borrow_name,p2.borrow_period,p2.user_id as b_user_id,p2.name as borrow_name from (SELECT * FROM `yyd_borrow_tender` WHERE 'status' = 1 AND flow_status = 0 AND flow_count > 0) as p1 left join `yyd_borrow` as p2 on p2.borrow_nid = p1.borrow_nid where p2.is_flow =1