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 (17527,17657,5993,44640,17335,19078,44884,31354,44762,24411,44849,44689,45229,44854,44868,44836,17835,5388,44848,18301,18042,44767,17114,3,18900,44875,45051,44775,44674,24441,45042,44835,4686,17755,45286,44671,17237,17092,44861,44856,16885,18794,18652,44851,44863,18446,45043,44867,44870,17492,45177,17556,6875,28530,18427,44858,44669,44531,45567,16935,13425,18286,44894,22509,17839,17601,18430,18894,24438,44845)
Unknown column 'np.person' in 'where clause'