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 (17601,17835,18237,45517,17657,17114,17492,44531,9341,13988,13,44640,36472,45177,18650,18286,18794,22509,30986,4686,18572,24412,44836,28313,14402,44837,24411,44894,32454,17335,44845,18900,18981,18172,44884,44858,18185,45180,44685,44671,6875,5388,44767,31354,24438,17703,18301,44875,19057,13922,17848,44865,45567,44855,18430,45043,18894,17756,18042,45286,44687,37057,18353,18719,18652,44867,44869,45229,6782,18996)
Unknown column 'np.person' in 'where clause'