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 (9341,44863,44669,17092,17114,4765,24412,44836,18996,17981,24438,32454,17556,44745,22509,44866,5388,30963,18279,17839,44687,44869,44870,45051,18353,16935,18900,44767,17601,45229,44766,45518,4686,18427,13425,44861,44765,17904,44856,44865,19078,45177,44671,17492,5993,44875,13922,3883,44531,44762,44775,18652,44851,19057,18894,44894,44849,17771,45346,36472,13,39676,17756,28530,44884,44867,17848,18042,5410,17351)
Unknown column 'np.person' in 'where clause'