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 (30135,4765,19078,17351,6609,6875,17756,18042,17335,17556,45229,22509,28530,17981,5993,18996,30963,18430,10402,6782,44875,17092,44669,44835,18172,45518,44868,44671,17755,5410,44768,18794,44851,24441,24411,32454,13425,18301,16935,17835,36472,17657,34194,44836,44869,44766,44765,44687,45286,17904,44845,44861,17492,44866,14402,17237,17601,18650,44674,17527,44739,39676,44867,13,44884,28313,45561,18894,4686,44878)
Unknown column 'np.person' in 'where clause'