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 (19078,17009,44875,18279,18301,44854,45177,45346,44745,13,44848,44739,31354,44868,45517,44861,24441,17278,44835,17835,44855,4686,17601,34194,45421,45516,45051,45042,17755,5259,44687,30986,18900,18650,17092,18572,44865,44766,5993,17492,44674,18446,45518,18981,43800,18042,18688,17657,17756,44764,13922,13425,24411,45043,44849,18719,37267,44853,44867,44869,5388,24412,44873,18353,45277,14622,14402,9341,18427,44669)
Unknown column 'np.person' in 'where clause'