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 (30135,17981,44884,18996,44835,44878,44764,44894,18353,17703,17009,45286,17771,17755,17657,44739,18427,45515,44762,45516,14622,44875,45421,45346,44865,45262,9341,18286,28530,17904,17335,24441,18652,45177,44849,44687,18688,17237,44873,17527,43800,6609,4765,44745,19057,17601,18981,13922,5410,45072,18172,18719,17351,44856,24412,17839,45517,37267,5388,45042,44669,45229,31354,44766,30986,44711,17848,44854,17756,34194)
Unknown column 'np.person' in 'where clause'