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 (44854,18427,18430,31354,17527,45518,44837,44836,44685,44853,18894,17703,44849,45561,18353,45262,24438,44764,17835,17092,3883,13425,44739,17556,45421,28313,44689,44863,44861,5993,22509,6609,45567,17237,44845,44870,44531,44765,18648,44711,45043,45277,17601,24411,34194,44869,4686,45229,17278,9341,44873,43800,45517,5388,44867,45516,17756,10402,44866,30986,37057,17351,44669,18172,18237,44865,44858,18301,16885,6875)
Unknown column 'np.person' in 'where clause'