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 (18446,5410,44531,17335,44866,44858,17848,24411,24412,45516,45421,44863,8753,17657,17278,44849,45517,44884,18900,30986,17839,18688,17703,44855,45072,6875,45177,39676,44766,37057,17981,44837,44867,18894,44640,31354,19057,18652,18996,17771,34194,45518,4686,18237,17351,18185,44878,44739,45277,28313,44870,43800,37267,18794,45515,44848,18301,44875,5388,24438,44856,44745,18279,18427,45229,18981,13988,18430,44873,24441)
Unknown column 'np.person' in 'where clause'