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,18185,18286,44767,44856,44854,18688,44685,24411,44848,5410,17904,45517,44671,44869,44875,45043,44531,28530,44745,43800,44863,18042,18301,45518,44873,36472,44851,14402,18430,22509,18572,45277,3,17755,34194,17703,6782,45051,17835,17527,44764,44878,28313,30135,4686,37267,44868,44766,17839,44861,45286,16935,45561,18172,6875,10402,45421,18894,17492,45516,4765,44837,17556,39676,18427,17848,17335,5388,24438)
Unknown column 'np.person' in 'where clause'