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 (45421,45515,44836,18185,44765,45567,17351,44775,13425,18279,44875,18794,45277,18572,18172,6862,17527,44671,14402,34194,9341,17114,44855,18430,44884,17839,37267,17556,18301,44669,44764,18042,18237,44858,24441,44766,6782,44837,37057,45286,30135,14622,28530,44863,44767,44894,18981,44845,32454,17904,19057,17009,45177,24438,44848,22509,44868,17756,5993,3883,5388,44689,17755,18652,44856,45516,18650,44685,24412,18688)
Unknown column 'np.person' in 'where clause'