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 (18353,18279,44854,44878,13988,44836,18430,44837,18794,31354,44835,45421,44764,6609,18185,30135,17839,30986,45561,16885,13425,44875,17527,17335,3883,17278,28313,19057,19078,16935,37267,13,44674,44767,44848,44856,44711,44845,17009,45043,44745,17703,17756,44689,45517,45516,44849,18237,45567,18042,45177,45051,14402,44863,6782,44669,4686,18572,18172,22509,44855,45180,44868,5388,17835,44640,24438,18996,44858,13922)
Unknown column 'np.person' in 'where clause'