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 (28530,44739,44669,17835,18237,17114,19078,44855,17335,17237,45042,44671,16885,34194,44775,45515,45518,44865,18446,17657,17981,6875,44875,45262,45229,5259,13988,44884,3,18652,45051,45567,37057,44689,39676,17601,17703,44674,6782,18286,44894,3883,45277,24438,37267,44768,18794,17278,18301,45177,17556,44853,16935,44745,45516,18430,44868,17351,44848,44870,30135,18648,13922,44863,18172,4765,24412,44837,44858,44869)
Unknown column 'np.person' in 'where clause'