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 (18894,10402,44837,3883,44854,17527,45180,37267,17335,44836,18237,45517,13425,14622,44866,13988,28530,17601,44764,18427,17756,18981,37057,45516,5388,45567,44867,44687,44851,44671,44685,44640,36472,44689,44845,45229,44894,18172,5993,17703,44863,17904,17492,44873,13,9341,16885,44766,44765,44768,34194,17755,18042,44884,17556,44767,24412,45262,44669,30963,17114,44762,44848,30135,28313,5410,44745,18650,44674,18430)
Unknown column 'np.person' in 'where clause'