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 (45180,18042,44856,30986,18894,18572,17848,17756,6609,18688,44775,17114,18446,44669,44837,45561,13922,44687,44869,45277,44894,44884,8753,14622,13425,18719,44711,44849,44671,44762,44868,18794,44768,44866,6862,18648,44858,17527,44689,32454,5259,17492,5410,44851,45177,44863,24411,45516,17556,45262,44640,44854,4686,45043,43800,44873,5993,45567,45072,22509,17335,45346,44870,17835,13,44848,18286,44835,18279,13988)
Unknown column 'np.person' in 'where clause'