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 (18185,30963,45177,43800,3883,37057,6609,14622,19078,44851,24438,45262,17278,17237,45286,45051,24441,17492,44873,44762,37267,44836,44685,44848,44869,17904,5259,44849,17839,17556,18430,18572,18446,45229,44845,44766,18286,6862,44671,3,4686,45180,18794,4765,44878,18652,13425,17114,17756,44835,45072,17771,17601,16935,17527,44768,44853,39676,44894,31354,5410,18353,13988,44711,44884,10402,18042,36472,17755,17835)
Unknown column 'np.person' in 'where clause'