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 (44865,44835,13922,32454,18286,17835,44884,45567,5388,44868,44671,44894,18237,45517,45561,44873,3883,14402,45051,45286,44861,17601,18185,45346,18648,44775,44767,5259,45043,44689,44875,37057,44765,44674,6862,44849,6609,5993,30135,6782,17527,44863,45072,17278,17755,6875,5410,44762,17756,44854,17771,45421,18427,44739,18652,31354,9341,17904,17092,13988,44867,45516,44837,19078,18430,44669,24411,18172,44745,14622)
Unknown column 'np.person' in 'where clause'