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 (18430,34194,17703,6875,44531,44835,18446,45229,31354,44768,18185,18172,16935,30963,44861,18042,18794,44854,18900,13425,44640,18286,44884,17351,45516,45518,44766,45515,44689,13922,17335,44739,45072,17278,5410,17601,17771,3883,44851,44669,45561,45177,17835,5259,4765,13,17009,14622,18981,44866,45180,45277,30135,17848,44870,45517,6862,18650,44836,44845,44858,44687,30986,44856,18427,44878,44837,6609,18719,44875)
Unknown column 'np.person' in 'where clause'