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 (44674,44878,17981,44768,30135,44687,45515,17601,18237,45042,44762,24412,6782,44765,45180,45421,44849,17278,18652,4765,17527,6875,18648,30986,32454,28530,3883,37267,19078,17835,45516,44851,44868,28313,17657,3,18042,5410,44865,34194,45286,44764,44835,31354,45072,22509,17009,45561,18900,44671,18794,44858,13,17755,5259,14402,44867,45262,18286,17351,44856,24411,24438,44745,30963,17556,45043,37057,44775,44894)
Unknown column 'np.person' in 'where clause'