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 (17492,18688,17703,44870,28530,37267,44868,45177,17556,10402,44865,17351,18286,39676,24411,44854,22509,45277,5388,44884,44531,6782,17839,4686,36472,14402,16885,44745,44894,14622,44853,13,45286,44837,44873,18652,45517,24412,18353,45262,18042,45072,19078,44848,5410,17756,44875,18237,17771,44711,18427,31354,19057,17009,17848,44849,13988,3,44767,44858,17335,17278,18900,44762,45346,45042,45421,18446,17237,45180)
Unknown column 'np.person' in 'where clause'