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 (45277,5993,24411,19078,17835,44762,18572,8753,37057,44689,45518,18996,5388,44687,44873,44835,45262,17527,18042,18172,45177,45517,18279,18185,30135,34194,5410,22509,44768,16885,44745,44671,18894,44640,17981,19057,9341,45561,16935,28530,45072,18648,17904,17601,17755,44875,45346,3,18446,30986,44855,44884,45051,18981,17237,44674,44848,44854,18652,10402,18430,5259,17351,44765,18900,44868,17657,44870,18301,17335)
Unknown column 'np.person' in 'where clause'