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 (44873,14402,44531,10402,44685,17657,34194,44671,6875,44849,18648,17237,30963,17492,3,18900,43800,18719,44845,44836,24412,45051,44766,44669,45517,18185,44837,44870,44848,44894,13,17601,44878,44768,24441,13988,6782,44884,44875,18301,36472,5993,44854,6609,17351,3883,17009,37057,37267,24438,44861,44858,17556,44711,45177,17904,44764,45180,17092,4765,18996,44856,44640,18042,5388,44687,18650,28313,18981,17981)
Unknown column 'np.person' in 'where clause'