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 (44669,18185,44685,43800,14622,45346,17771,44766,17335,45561,18446,17556,44837,13,44762,44671,44851,45567,6782,45516,44836,17237,18900,14402,44853,44858,30963,44856,18719,30135,32454,44775,4686,17092,44865,44870,45518,45051,45229,5259,5993,18688,18301,18286,45262,18981,18279,3883,18650,18172,39676,44687,17492,44711,44767,17756,17278,17848,18430,17981,44845,44875,24411,18794,18894,18652,45277,44855,17703,44739)
Unknown column 'np.person' in 'where clause'