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 (44873,17839,4765,18427,14402,44870,28313,18353,44894,18446,44861,18286,44869,44884,18652,18279,17703,17771,17835,37057,17237,24438,6782,6875,44765,16935,44854,19078,18650,44853,44865,17657,3,5993,44866,18688,18648,16885,44875,44851,17755,18572,44835,17981,18042,45517,5388,17278,44855,44745,45072,13425,18996,44767,32454,18172,44739,44764,45567,45262,44836,44867,44768,44669,45177,44848,30135,44837,45229,30986)
Unknown column 'np.person' in 'where clause'