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 (17278,17657,18427,17237,36472,44835,44851,45346,44766,44765,45051,18353,17009,24412,17981,18719,45277,34194,44861,45180,10402,18652,44848,17601,44853,6609,13425,16885,17351,44669,45072,44640,19057,37057,44849,45042,43800,45515,17835,14622,18279,3883,5259,30135,18648,3,18894,5993,18900,44531,45517,18301,17527,44875,44858,44745,13922,13,44878,45262,6782,19078,44894,18446,31354,44764,44863,17904,45421,17703)
Unknown column 'np.person' in 'where clause'