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 (44687,18981,13988,44855,14622,37267,18652,44853,44884,17278,44767,44766,44878,13,44671,19078,17848,44775,44765,9341,18648,44640,17492,44873,13922,44768,17556,22509,44685,44745,44762,6875,4765,17114,44854,34194,18430,18900,17009,45072,18185,44863,18688,8753,5993,44867,17755,45286,17601,18996,44866,30986,17527,44851,17335,45518,44875,45517,37057,45516,18353,17981,36472,28530,44845,17703,43800,18719,44858,24412)
Unknown column 'np.person' in 'where clause'