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 (3883,8753,44884,13425,18185,14622,44837,30963,18648,44775,45043,13,17703,44836,37057,18301,45516,17492,5388,44863,44861,17981,6609,44854,5259,18719,44531,45517,31354,44849,17351,44853,17237,28530,17335,3,4686,44855,34194,19057,44762,18353,18279,44685,44866,44851,14402,9341,44865,44894,17092,44765,45515,4765,24438,18446,44766,17278,45262,24412,17657,5410,5993,44674,17556,36472,17771,17601,45561,30986)
Unknown column 'np.person' in 'where clause'