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,18237,17556,3883,17335,44674,18650,4765,44869,37057,45421,13,18648,17981,44766,9341,44671,17601,17703,44640,44853,18981,34194,5993,18279,22509,45286,44685,3,24411,44669,44775,44875,45229,45177,44768,17278,44762,44764,44873,44845,16935,8753,19078,44855,44870,18185,17114,6875,17351,39676,19057,44858,44711,44854,18427,24438,28530,45561,18286,18430,44856,13922,17839,5410,18172,37267,44767,44867,44894)
Unknown column 'np.person' in 'where clause'