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 (44868,30135,44873,44875,45042,17351,45072,44894,44856,45421,17237,45177,17835,45043,28313,44687,44689,18237,9341,44869,44671,18996,18900,6875,17657,44674,4765,34194,44835,44685,5259,3883,44865,39676,17492,17904,44854,45277,17981,32454,19078,30963,44837,18652,44768,45561,44848,28530,18981,17755,17839,24441,18279,18427,45346,44766,18446,17527,44849,30986,45515,44853,45229,13988,18286,44739,18688,45516,13425,18719)
Unknown column 'np.person' in 'where clause'