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 (14402,18650,18996,28313,4686,44685,17009,43800,45043,18185,18648,14622,44853,10402,45346,18688,6862,45517,44868,18427,17839,24412,32454,18286,44865,44849,17335,44711,45042,16935,17092,24411,18794,44640,44669,44674,44762,45421,13425,17756,30986,44837,18446,17601,45277,45180,44768,18042,44767,44764,45072,8753,44855,44870,44845,44687,37057,37267,17835,44766,44884,19057,31354,24441,45561,18900,16885,17904,44848,45286)
Unknown column 'np.person' in 'where clause'