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 (17335,3,5410,44531,18279,44669,44858,43800,44845,45561,17839,6875,18996,36472,18353,44685,17527,44689,45043,44865,44687,44671,13425,5993,44875,45421,24411,4686,44739,44868,18648,6862,44835,17556,45262,18981,17601,18894,32454,17771,45517,44870,6782,17904,44837,17492,18688,18794,19057,45072,45229,44775,34194,5388,13922,18430,17237,28530,44640,31354,44863,45051,17092,17981,44848,45515,30135,18185,18900,8753)
Unknown column 'np.person' in 'where clause'