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 (44849,44884,44866,36472,5993,44867,44531,18279,19078,44745,22509,17755,45051,44858,44853,24412,17351,43800,6875,44836,10402,44868,13988,18286,44837,17657,44851,5388,45421,24438,3883,44845,44835,3,45277,44762,17009,18237,44768,18301,18353,44878,6862,45229,44856,44861,17848,19057,44875,9341,14622,17092,17835,45180,45043,17278,44766,17556,18648,44775,16935,13922,45515,30986,44685,17114,44711,4686,18446,44671)
Unknown column 'np.person' in 'where clause'