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 (39676,17657,44894,18286,6875,18279,44865,44855,45421,44866,45177,18237,3,44863,17351,34194,44837,17755,44875,44869,10402,17114,17335,18996,44854,13988,44867,18172,13,5388,18648,44764,31354,16885,44765,43800,5993,18794,44870,44873,24438,18652,44775,18042,44669,44835,44858,44689,44711,18650,18446,45286,45517,45043,44849,28313,24411,30986,9341,44845,17237,44739,17835,44861,17492,13922,6609,4686,44848,45072)
Unknown column 'np.person' in 'where clause'