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 (17755,4686,17848,44767,45043,17835,44531,18719,24411,5993,44858,19078,45229,24441,13922,45421,44853,18981,31354,8753,32454,17556,44869,45180,44870,44866,44765,18353,3883,44835,22509,9341,34194,5259,6875,18996,18301,18042,44851,44836,44745,44837,44669,5388,44739,44762,45567,17237,6862,17527,18427,43800,13425,18794,18652,45051,44855,44685,44845,14622,18172,44689,45072,44861,44863,45516,24412,44848,18286,17756)
Unknown column 'np.person' in 'where clause'