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,44687,37267,9341,13,44674,17351,44837,17755,4765,45561,44878,45518,6862,45277,17771,44865,45072,18430,45515,44835,44854,30135,8753,18572,18301,22509,17848,13922,45229,44767,18894,18042,24438,37057,45421,44711,17237,17756,44870,45042,44689,17492,19057,14402,18279,18353,18996,44849,18427,44836,44531,32454,17981,44863,44848,18688,45517,44884,34194,44855,39676,17904,44894,4686,5388,45286,17278,44868,17335)
Unknown column 'np.person' in 'where clause'