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 (45043,44768,45051,44685,19057,44687,17009,30986,31354,4686,17756,45346,18430,8753,16935,17092,45517,37057,22509,17835,45518,45561,18279,44845,5410,44894,5388,5259,30135,13988,36472,24441,44855,44863,17981,5993,17351,44884,44875,18648,18650,6609,18446,44869,9341,45515,17601,17556,45421,3883,17335,44762,39676,44870,18172,44867,44878,28530,44849,44689,44865,44767,17657,44837,44856,14402,13,18185,44745,44835)
Unknown column 'np.person' in 'where clause'