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 (17981,18353,44868,45421,18430,44767,24412,17756,13425,28313,44765,44865,32454,17492,17351,44856,24441,3883,17657,18650,18652,8753,31354,44689,17703,18688,44884,13988,17556,6875,17335,34194,44766,17848,13922,28530,18301,36472,17601,17092,18996,13,18648,4686,5388,5410,16935,19057,44863,45517,19078,3,24411,18794,44671,45567,44848,30135,45051,18237,44687,44845,44836,18981,18286,17527,45180,44531,44762,45177)
Unknown column 'np.person' in 'where clause'