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 (3,17835,32454,18900,18427,44689,5259,44894,16935,16885,44685,45180,17556,44878,6875,28530,18446,10402,44764,44669,24411,45517,17601,17981,45229,44711,44768,18237,44765,17351,45515,17703,44863,45518,18652,45561,18996,17756,30135,44854,18981,44687,17114,18572,17657,45567,44855,13988,44837,18719,9341,19057,14622,44865,44868,44870,3883,44671,44867,44640,18279,44884,44835,44836,44767,18301,18185,13,30986,45262)
Unknown column 'np.person' in 'where clause'