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 (18427,18652,19078,17278,45180,18996,28530,45072,18894,18719,44768,17601,45518,44739,6862,44854,16935,45421,37057,17835,13425,6782,17839,44873,18042,17527,44531,44861,9341,44875,44868,44866,4686,45516,44711,18446,13988,44835,24438,44836,18688,44884,18172,44845,44849,45515,45346,17092,4765,45177,44853,43800,17492,5410,45277,18301,44764,17237,45286,44762,30135,17771,44867,16885,5388,17904,44745,32454,22509,44870)
Unknown column 'np.person' in 'where clause'