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 (44768,18427,44853,17657,44767,24411,44739,44766,18042,17335,6782,44884,5993,44867,30986,13922,19057,45262,44836,18185,28530,16885,18301,44865,44689,24438,18996,17237,44851,14402,17278,17492,45072,17527,37057,5410,45229,44674,3,17835,44687,45043,44878,24412,17981,24441,44845,44856,18353,18648,18794,45518,44835,44866,13988,44863,44875,45421,44868,44873,18688,18652,45517,30963,45277,44671,18172,28313,17351,45516)
Unknown column 'np.person' in 'where clause'