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 (45561,17092,44854,18301,44870,6862,44835,44869,18894,17755,45051,44768,10402,44685,37057,17556,3883,17981,44878,28530,36472,18279,24411,44674,18427,17351,5410,17835,18688,44863,44745,24438,45421,17657,45042,17848,5388,44848,45262,44851,22509,44867,18652,17771,4765,44875,44640,44739,18900,18286,9341,32454,18650,44765,5259,17703,13,18794,18172,44865,45517,44849,44687,18042,44884,13922,44767,17904,17527,44836)
Unknown column 'np.person' in 'where clause'