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,44531,30135,44766,28313,3,17601,44836,45516,24441,4765,31354,6782,44711,45180,44835,5410,44739,18042,22509,45421,13,44849,44765,17556,44867,45072,44768,30986,17756,44837,18237,3883,17904,44764,18172,44861,44869,44845,17237,44853,44762,24411,19057,18648,45277,44854,45286,17092,24438,44868,34194,18794,17657,44851,44775,44674,44687,18185,45517,44875,17527,18446,45515,18430,19078,18996,37057,45051,44858)
Unknown column 'np.person' in 'where clause'