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 (30963,45042,17278,36472,18648,18286,44858,24412,39676,18042,44865,44875,44878,18688,28530,17848,45518,18427,18900,18353,6782,5388,24438,44687,44866,44835,10402,17237,44531,18301,43800,44884,18185,44851,45515,5993,44766,6609,14402,44685,18894,44867,44870,37267,45177,6875,45286,44837,44855,45277,18981,13922,44762,44848,19078,18794,17351,17657,44894,4765,28313,45516,45567,14622,17492,18996,3883,6862,45072,44856)
Unknown column 'np.person' in 'where clause'