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 (18301,18185,45180,17351,6862,44868,44671,18650,18648,44837,5993,18042,44894,17009,17335,18981,17601,17904,44711,19078,44685,17278,44687,5388,18652,44870,18572,18688,3883,18430,24438,18996,44865,17237,44745,8753,45051,45072,17839,18279,44849,18172,14402,44867,44869,45517,44766,45346,30963,18427,13922,17492,44764,13425,44835,17556,14622,44851,28313,19057,44848,44739,45262,44762,6609,44855,17981,44873,44689,44861)
Unknown column 'np.person' in 'where clause'