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 (43800,14402,45042,44767,30135,17601,18172,45286,17237,44894,45262,18650,14622,44868,17756,28530,18572,44685,18427,44711,44845,44674,18237,44849,6609,13425,9341,17278,17335,18353,18648,18279,45277,19057,10402,3883,16885,13,3,5993,31354,24441,17492,45561,44858,44856,44745,44866,44739,39676,5259,6782,4765,30986,18042,17527,24411,45051,36472,13922,45517,37057,6875,45346,44837,45567,17981,44765,45421,44884)
Unknown column 'np.person' in 'where clause'