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 (28530,9341,5259,44739,5410,17092,17114,17492,4686,34194,5388,44875,44869,13988,30963,45051,18719,44671,17527,44858,44669,18430,17351,45072,19078,30986,17835,31354,32454,45262,44868,17981,44884,44775,44894,4765,44863,44685,44762,44640,44845,18652,44866,19057,45517,37267,44764,44870,44878,18353,43800,45177,18688,45567,45515,44836,45043,44853,18427,44687,5993,44674,17657,44861,44531,44851,17601,18648,3883,44766)
Unknown column 'np.person' in 'where clause'