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 (18427,45180,18996,44870,18446,17601,45518,44768,44868,44669,18279,45229,44674,17755,45051,17278,4765,17657,18172,14622,6609,22509,45072,43800,44711,44856,17237,44685,18794,44762,37267,31354,44853,17114,44878,45177,18648,17835,44865,18353,13,18650,18301,45277,44765,44531,44687,44858,17839,17092,39676,44689,44845,44849,17335,45516,44739,6782,44863,45561,13988,44894,17904,44848,17703,44855,32454,14402,44866,44767)
Unknown column 'np.person' in 'where clause'