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 (18427,30135,44768,13425,8753,45229,44861,44853,5993,17527,17848,45262,18688,30986,17981,18172,45277,4765,44894,44867,44762,17756,44868,45516,45286,24411,19057,17278,44835,44863,19078,17839,18719,17771,44711,45567,6609,18446,17114,28313,17904,44869,45561,18648,3,44765,45180,5410,17237,45177,44671,44640,16935,34194,44685,44878,44873,28530,37267,18900,18650,45515,45072,17556,44687,37057,36472,18353,18996,18279)
Unknown column 'np.person' in 'where clause'