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 (44687,44851,17981,32454,44849,17092,17756,44767,6609,14402,44835,36472,44768,45516,45515,8753,4765,17835,44671,45518,44766,44689,45177,45286,45180,45421,44867,17278,44854,18900,44669,17848,18719,44884,44868,18042,18981,17009,17771,43800,37057,44865,19057,45561,44875,34194,24411,18688,44685,24438,44711,24441,13425,44674,17703,44873,28530,13988,45346,17335,30135,44878,45517,45051,14622,45262,6875,16885,30963,44853)
Unknown column 'np.person' in 'where clause'