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 (18894,44640,44848,18648,18719,44869,45561,44875,24441,44868,3883,17601,24438,28313,18430,39676,44767,44867,37057,45515,36472,45051,17703,44837,44858,44739,44853,44866,44870,45517,17092,44766,44768,17835,18981,13988,18794,32454,18286,44845,44855,30986,14402,6875,18688,45043,6782,18446,44865,45229,45180,17492,43800,34194,45567,18572,17756,44765,17981,44674,17904,5410,44835,44836,30135,5388,44851,44685,17657,44687)
Unknown column 'np.person' in 'where clause'