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 (5993,44870,30963,18172,6875,3,44671,4765,44837,17492,37267,18446,44851,3883,18794,45515,44855,18237,45567,18996,43800,44861,17981,10402,44711,44669,18427,44674,44848,32454,17848,17351,30135,18648,45072,28313,19057,18185,44875,44894,18042,45177,45042,14622,39676,17278,44764,45516,45043,44775,6609,5388,44835,44865,45518,18894,17657,44685,13988,18430,18650,44858,45517,44531,44767,18652,45180,14402,17335,17556)
Unknown column 'np.person' in 'where clause'