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 (6609,28530,37267,44867,44640,44689,44531,19078,18652,44884,17755,45518,43800,30986,18427,44875,18794,18279,18648,28313,44762,17756,45421,18894,3,44854,45515,44685,30135,44848,44870,18301,18996,44845,44855,24412,18172,18286,44764,17335,19057,18900,17771,6862,17703,13988,4765,9341,39676,44869,45072,5259,18430,17981,17657,45043,8753,18042,44674,10402,5993,17527,45346,31354,17835,44836,17492,4686,18353,44866)
Unknown column 'np.person' in 'where clause'