Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (28313,45277,37057,44870,18237,44873,28530,13,32454,44766,17114,17657,17092,36472,44671,17527,14402,44689,45229,17601,45346,44836,18652,43800,17703,24441,44685,18172,18279,5388,30135,19078,24438,5993,45286,44854,44858,45262,44853,17335,17351,44764,18719,17839,22509,13922,18794,5259,18430,45042,44674,17835,44884,44861,17556,45516,24412,44868,9341,44878,34194,44875,45072,45567,6609,17848,39676,44765,6862,44855)
Unknown column 'np.person' in 'where clause'