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 (45051,13,17756,44869,44865,45518,44837,18301,13988,13922,44867,45177,9341,44863,44766,44845,44765,44711,6609,18650,18794,18719,44861,45567,44764,44870,39676,3883,18652,44849,17755,17839,17981,44848,18446,45515,18430,34194,44671,18279,45180,44739,44856,45561,17492,18981,8753,24412,6875,18996,36472,28530,17009,45516,30986,44685,18353,18688,31354,44855,17848,22509,18172,17237,43800,5388,18185,17657,44873,44835)
Unknown column 'np.person' in 'where clause'