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 (45042,31354,44853,24411,18719,45286,44858,18446,45515,18794,44835,17278,44861,45517,37267,18042,44767,44640,44869,17657,17848,17351,13,45518,44851,18648,17335,44873,18301,18996,18279,16935,10402,44764,18237,45567,45043,36472,8753,17114,17237,14622,44866,44855,44669,5993,18652,17527,18688,44875,44687,6782,44689,45180,45516,44863,44745,44674,44868,17009,44765,44739,45262,18172,45421,45229,24438,3,45277,14402)
Unknown column 'np.person' in 'where clause'