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 (45177,30135,44687,18996,17835,30963,17335,28530,18794,24412,17492,43800,16935,45229,45072,18353,44878,44851,44669,18301,45518,45262,18430,44674,45516,36472,45051,45042,5388,44867,13922,17755,44866,44711,45346,24441,18279,17009,44856,44836,45515,19057,44869,44873,5410,4765,17527,18237,44858,44762,17848,44868,39676,44894,44745,13,44870,44685,17556,18981,24438,44689,32454,30986,10402,17657,6782,44861,17278,22509)
Unknown column 'np.person' in 'where clause'