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 (18719,6862,39676,14622,18430,17657,45567,19057,17771,34194,43800,17527,44687,44689,44531,45515,18996,17601,44865,17904,17009,18042,17492,44849,17703,44866,22509,18650,17351,6875,3,44685,44873,44875,45421,16885,45177,17237,18185,18446,24411,44671,44766,44835,31354,30986,18794,28313,4765,5388,45277,14402,30135,45043,44745,18427,18301,19078,6782,44894,44853,17981,3883,37267,44669,18353,44858,13,44867,17556)
Unknown column 'np.person' in 'where clause'