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 (45421,4686,17351,18688,13,45567,19078,30986,44671,39676,44884,17492,45042,37267,44767,45517,22509,44849,17556,17981,18042,44873,44845,44855,13988,44858,17601,44861,17092,14402,45516,44687,18572,17527,18446,37057,28313,44764,16885,18172,4765,44768,44851,24411,17703,45072,3,44865,18652,5410,17755,17278,3883,44854,43800,36472,44875,45180,24438,45277,44640,44848,18996,6862,31354,44762,44674,6609,44878,24441)
Unknown column 'np.person' in 'where clause'