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 (14402,44873,18042,18446,13,9341,17009,17839,44669,44768,44767,4686,24411,18572,44866,44861,18185,18172,37267,45177,5388,30986,16885,17492,17756,45072,17904,17556,32454,44894,17114,44858,17703,17835,45051,6782,37057,6609,45421,17335,13425,44884,44837,44685,45277,43800,45229,44848,44875,18286,44863,44855,5410,18650,28313,18894,45262,45567,44865,44745,45180,3883,17657,44870,18900,44671,44640,44739,45286,18688)
Unknown column 'np.person' in 'where clause'