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 (45072,37057,30963,44762,18900,4765,17492,18286,44875,44861,16885,13,18446,17351,44836,44868,17771,5993,17278,30986,34194,45042,18648,9341,44765,24412,37267,44869,22509,18719,6875,24441,28313,44766,45180,18301,44768,44711,43800,44884,45177,44764,17848,18427,44671,36472,44866,18996,18279,44851,30135,18185,18572,45051,45043,44687,28530,6862,13988,44865,44849,44845,44848,44775,17556,18353,17092,5388,8753,44894)
Unknown column 'np.person' in 'where clause'