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 (17492,44865,45072,17009,18237,17527,44685,9341,5388,45229,44863,10402,45042,44766,18648,18301,18794,44836,18185,45043,44531,45180,5259,17848,18042,18894,44849,44851,44875,44868,45421,6862,45517,18900,44767,44745,45262,44762,18427,13,44848,17771,13922,24438,44878,18688,45561,30986,44765,14402,37057,6782,45567,18650,16935,45518,44671,44837,45515,45277,18430,44835,44884,44867,44854,4686,24441,17114,17335,44858)
Unknown column 'np.person' in 'where clause'