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,44878,44685,44865,45051,44836,17278,18996,16935,44768,45421,18237,24438,28530,17839,44669,17092,17755,45515,6609,44739,44868,44866,4765,44767,18430,44765,17351,17492,17114,13988,17703,5259,17657,4686,45518,44870,5410,18688,18301,45180,17237,44762,18794,45043,44858,17009,13922,44884,44853,18900,10402,6875,17904,30986,19057,14622,37267,44766,3883,44745,17556,31354,6862,17601,44875,14402,18446,44848,18652)
Unknown column 'np.person' in 'where clause'