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 (16885,18900,18981,18650,44863,18688,17351,17237,44849,45177,17278,44854,44531,18042,44711,44765,44884,45421,13,36472,45043,17556,44671,39676,17755,44870,6609,45516,44873,4686,45567,44878,3883,14402,45229,18648,28313,37057,37267,43800,44764,45072,31354,18446,18430,18894,18427,44768,44674,4765,17527,17771,22509,18279,44835,6862,24411,13922,44640,18301,13425,17335,18172,6875,44861,30986,45517,44845,44762,17601)
Unknown column 'np.person' in 'where clause'