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 (34194,24411,18900,44768,19057,44766,44764,36472,45567,45262,5993,5259,24412,44875,3,39676,44854,17904,18894,18688,18286,44640,19078,18185,18996,44865,8753,44868,37057,44856,4765,44765,44855,45517,44775,17527,3883,44863,45051,44870,18279,28313,22509,6862,17848,6875,45561,44849,6782,18427,17492,44836,17237,44861,24438,45072,17335,45421,45518,45286,5388,13,44894,44866,17114,18430,44711,18237,44858,44669)
Unknown column 'np.person' in 'where clause'