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 (17703,18688,45042,37057,44775,44835,44836,44711,44674,18286,18172,6782,5410,8753,5259,17335,18719,18900,18185,6609,44671,44851,44868,13922,44848,18301,9341,30986,17278,18279,39676,5993,18237,44865,32454,17848,17981,17556,17114,44845,19057,45518,44687,22509,45516,18353,44768,44854,24438,44866,19078,18996,45286,44767,30963,44669,18648,17657,13988,17835,30135,44863,44870,43800,44849,17527,17756,44640,14402,37267)
Unknown column 'np.person' in 'where clause'