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 (6875,17351,6782,44873,44863,4686,45421,14402,30986,17278,30963,44685,44868,17981,39676,43800,24411,45229,17114,44711,44767,45518,13425,31354,44768,17335,44745,45072,44762,44894,17492,18172,37267,45277,44836,24441,44870,45262,5388,17771,22509,45051,17657,24438,44884,44764,45177,17835,18185,18652,14622,17601,18353,18237,44855,44687,19057,44671,17237,44845,44775,19078,9341,24412,44858,44856,5993,45286,13,10402)
Unknown column 'np.person' in 'where clause'