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,17492,8753,5993,44851,45561,18688,43800,45277,45262,44894,44858,5410,44765,44775,5259,44767,17335,22509,44837,44878,44835,44762,18172,37057,44687,18446,18237,17351,17237,18279,14622,4686,44849,18185,44640,45515,6782,44836,44865,44531,30986,17771,17657,44669,44764,37267,5388,44875,45177,18301,18652,18427,24412,4765,32454,44854,44768,9341,44856,45072,17556,18719,6875,44711,14402,31354,44863,45042,17755)
Unknown column 'np.person' in 'where clause'