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 (44835,45262,18185,17771,17904,44851,45421,18719,5259,4686,17601,18652,17835,45567,30135,44855,17657,28530,45346,44868,44861,44869,44875,44739,44867,44894,44854,44671,45072,44870,44689,44775,44858,37057,37267,28313,18279,17278,44853,17009,44856,17981,18237,18688,13922,13988,44531,44848,45518,44878,45286,45043,18427,45180,24441,13425,17756,8753,44873,24412,44764,17092,45561,44849,44674,18301,44865,24438,18286,45229)
Unknown column 'np.person' in 'where clause'