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 (17556,43800,45043,44768,18042,13988,44739,18427,44845,44766,18996,44762,18301,45515,5388,17009,44851,44835,45517,45277,18719,45516,44884,30986,44775,19078,44856,24411,44674,3883,44531,17601,44867,45567,44837,4765,18430,24438,45072,18650,14622,34194,18981,44711,28313,5259,44687,45051,44685,18446,17527,45177,44861,9341,44865,24412,45286,45229,18900,24441,44869,44894,17492,45262,6782,17981,17703,44671,44848,28530)
Unknown column 'np.person' in 'where clause'