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 (45042,17278,18042,17556,28313,44762,18719,18794,44851,6782,24441,44863,44837,44640,17092,17527,44766,17703,44835,18572,4686,44848,44856,44739,24411,44764,44845,9341,19078,6862,44853,45286,44878,3,17351,17848,44894,44711,37267,45072,17904,45180,39676,13988,45561,44875,45421,4765,18279,44671,18900,44849,18430,45177,45346,19057,44867,18237,44868,45517,18652,6875,17237,30963,18446,17756,44745,22509,44689,13922)
Unknown column 'np.person' in 'where clause'