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,18279,30135,18427,13425,17981,45262,17756,5388,44865,5259,44868,45346,24438,18446,45421,31354,44767,37057,44863,17009,44711,43800,17601,45229,17904,44867,17835,44765,18794,44845,44640,36472,6875,44849,44775,45277,44739,45286,24411,45561,18981,44768,45051,16885,44855,17848,44851,18894,44687,17703,44745,19078,44853,45517,17527,39676,3,18237,6609,28530,16935,8753,30986,44875,4765,44894,17657,13988,44870)
Unknown column 'np.person' in 'where clause'