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 (17755,18237,6875,4765,18279,45043,45516,24438,45072,5410,17848,18648,45346,18430,45518,18353,44669,13922,44685,44873,17492,44745,44687,45277,44866,17237,43800,44775,17981,44531,19078,18286,17335,45180,18446,37057,44851,18427,5259,17657,45262,6862,18794,31354,10402,44767,13425,17556,44849,37267,44868,44875,44739,17835,32454,18688,45286,5388,44878,44640,44854,44858,17092,45042,44853,28313,16935,4686,17771,44870)
Unknown column 'np.person' in 'where clause'