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 (44837,18286,44875,17527,13988,44739,44767,45042,37057,18688,44856,44685,17335,3,45516,44884,30986,17756,44845,34194,18172,17092,24441,44869,45229,17755,6782,24411,18279,44849,44863,18652,18185,17278,10402,17351,18237,45561,13922,18719,44855,44854,44766,4686,17237,8753,44865,18794,44671,18353,44687,17904,45072,17492,44674,30963,14402,44835,45177,44867,44866,44851,16885,45277,17848,4765,17839,24438,45346,44745)
Unknown column 'np.person' in 'where clause'