Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (18719,17237,44873,36472,44849,45229,44836,18981,9341,17756,14402,44878,8753,44689,3883,44865,18301,10402,18900,44884,45561,44764,17904,44837,44685,44870,44845,3,31354,44835,4765,17657,18688,44531,44855,32454,17114,44669,13,17848,44867,13922,17092,17839,18794,44766,18427,18996,17771,30986,17335,18648,45516,37057,19057,44687,44775,45180,44711,44894,18279,17351,44858,18353,17835,17278,17601,44853,18185,45051)
Unknown column 'np.person' in 'where clause'