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 (18996,5410,14402,44858,3,17601,16935,44884,44765,44775,17755,45561,45262,6609,13425,44868,44671,24412,22509,44836,44875,8753,17237,44894,44766,45517,44851,44837,37057,17848,45516,44863,17904,44855,17703,44739,44853,45421,19078,24438,31354,32454,44531,18301,18688,18648,44745,24411,18572,44767,44835,44764,44873,18794,17009,18185,17835,16885,13,18894,44869,44867,30963,3883,28313,18446,18353,17335,45043,5259)
Unknown column 'np.person' in 'where clause'