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 (18981,45072,17556,45262,34194,44836,17009,18042,45042,44640,30135,18301,45516,45517,17756,17351,17771,44845,44863,18286,4765,44669,13,44775,9341,4686,30986,44687,44865,44858,45515,18572,17703,44766,44711,13988,44868,17835,44768,18237,44767,45346,44745,44849,16935,37267,44762,36472,17904,17601,45180,13425,17335,6862,44870,6609,44531,43800,24441,6782,17237,44861,44685,44835,17848,24411,19057,10402,18172,45518)
Unknown column 'np.person' in 'where clause'