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 (18185,44848,13922,44878,17848,14622,28313,3,44875,45043,44867,44766,18172,44845,39676,18353,18650,43800,17335,44869,45421,44765,22509,3883,30963,44689,45229,18981,17351,30986,44764,18427,17278,44711,45286,16885,18430,18301,24438,18688,44865,45042,45515,44685,44674,44863,45567,37057,44739,44835,45262,17755,17756,17556,44851,4765,18996,45177,13988,44849,17492,6875,18286,17839,44868,45072,17601,18794,44640,44884)
Unknown column 'np.person' in 'where clause'