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 (17237,17904,44767,44884,13425,44745,18427,17009,45072,45567,17114,44711,17092,18301,17703,30135,44867,17601,37267,44531,45515,45516,18981,45180,44875,43800,45229,45277,6875,45286,44878,44764,44768,19078,45051,45421,44837,18719,18648,44640,18172,19057,44854,44674,17839,18237,18446,24412,44848,8753,44851,37057,17278,45042,44865,18900,44835,13922,14402,18430,45177,6782,18279,28313,17848,5259,44739,13,9341,44849)
Unknown column 'np.person' in 'where clause'