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 (44851,18894,39676,45051,18900,18572,17657,45180,17278,6875,44669,18650,44687,45518,18996,16885,45042,18688,44739,44837,5993,44856,44671,45346,34194,18446,44711,24411,37057,18794,5259,17556,44869,18981,18286,44849,44878,17527,17601,44867,3,45286,44848,45177,45043,44845,44835,9341,44853,16935,17839,18185,13922,13988,45072,17981,19078,37267,18042,31354,44767,3883,45567,44873,18652,17335,44863,4765,14622,43800)
Unknown column 'np.person' in 'where clause'