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 (17848,44775,44849,19057,44851,45561,18446,44870,5388,17237,14402,19078,16885,17351,45180,45072,45421,17981,44768,30963,37267,13988,18981,44884,44894,44836,37057,17601,18185,44848,17009,44875,18279,44674,6609,17657,44878,31354,34194,6782,44765,45518,44687,44531,17839,18042,44861,44856,44858,18286,44865,45567,44762,18652,45515,24438,32454,36472,30135,44867,44766,18719,44868,9341,13,28530,45517,18427,44863,45051)
Unknown column 'np.person' in 'where clause'