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 (44766,45516,45561,44671,32454,45346,17904,44640,31354,30963,45262,9341,18652,3,44685,17601,45286,45567,44836,44858,44745,45421,5410,45277,17237,44866,17556,4686,17335,44845,44848,45042,18286,24412,45517,44869,18688,45043,44863,18353,17009,18648,44768,6862,44855,44861,36472,24441,18981,18900,17981,28313,44875,5993,44767,30135,44739,44835,44865,4765,17278,17703,10402,18301,44711,44894,44849,30986,18279,13)
Unknown column 'np.person' in 'where clause'