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,13988,44865,17527,17556,17009,44848,6862,44669,18688,18996,17237,5388,44671,44674,44873,45561,45516,17492,44687,18286,44768,13922,22509,45042,18353,45229,6609,44845,18794,18572,44711,44739,44775,30135,36472,34194,44762,18427,18719,4765,44878,3883,44861,44836,17904,17114,18172,39676,28313,44868,16885,45277,13425,13,30963,8753,45043,45517,17755,6875,44856,44858,17756,44531,44765,5410,44835,18430,44894)
Unknown column 'np.person' in 'where clause'