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 (44531,44856,44766,44863,44671,44875,5259,17703,44674,45567,44836,3,44669,44870,6862,44868,17848,5993,18652,18572,32454,44861,45421,44878,24441,44764,18900,17237,13922,44884,44685,44855,13425,44894,9341,28530,44873,45262,18996,17278,10402,44848,45561,19057,44640,45515,37267,44765,45177,44867,24411,4765,37057,45180,18286,14622,18894,18981,44837,30135,45051,28313,18301,17351,36472,45518,45516,30963,44711,18172)
Unknown column 'np.person' in 'where clause'