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 (16885,44867,18237,44848,17755,44851,44837,39676,5410,3,17703,44894,18894,13922,43800,17009,24441,18981,14402,24438,44884,18286,18648,17092,9341,17771,44873,44853,18900,18172,18301,44766,18353,36472,17527,19057,24412,30135,44764,45518,18996,45561,44870,6609,45180,44868,37267,17835,44835,45421,44836,28313,44745,44865,44856,44640,45042,44669,45177,13425,44855,18719,45286,45277,44739,17492,18185,18279,44762,44685)
Unknown column 'np.person' in 'where clause'