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 (44845,17904,5388,18719,24438,37267,44767,44531,18172,45561,45515,44861,45262,37057,18894,44849,13922,5259,45567,45518,32454,44848,17839,45177,44711,45180,22509,44869,45051,44745,18652,30135,18900,18427,44870,16885,18688,28530,4686,36472,24411,17278,17556,44775,18650,44837,18279,44671,44858,18185,17351,44674,17527,30963,44685,28313,24441,13988,34194,18981,6862,45286,17703,45516,44669,18042,18353,18446,24412,45072)
Unknown column 'np.person' in 'where clause'