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 (45516,44873,44863,18996,45346,44856,45277,17771,17904,18648,17527,37267,44762,44855,44868,44671,17278,28530,44845,45229,5993,18185,44739,17009,18719,17839,28313,18279,6609,44861,30986,44687,14622,18353,13,45286,44689,44765,18042,16885,44669,36472,8753,19078,45421,45177,18572,16935,18427,44836,18301,24438,18286,17351,6862,5388,24411,45567,44837,22509,4686,18652,44865,44858,6782,18650,30135,18237,45180,3883)
Unknown column 'np.person' in 'where clause'