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 (17009,44671,17114,44863,45229,44878,44870,44867,44745,36472,45567,45277,44767,44836,44873,17981,4686,45515,44689,44674,44868,18185,24438,44855,16885,17492,18446,30135,16935,44711,17904,13922,45051,18996,45518,44687,24411,5259,17092,18900,5388,44865,44669,14622,44848,28530,6782,10402,18572,44845,24441,44765,30963,44866,18172,17755,18719,13425,44640,3883,32454,8753,17351,34194,19057,44835,28313,17756,37057,44853)
Unknown column 'np.person' in 'where clause'