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 (3,44671,44894,13922,17839,9341,18900,5410,44745,17492,18427,17351,44875,8753,17756,18446,18279,44531,16885,45180,44851,17335,4765,17009,44768,28530,44687,44845,45286,44870,44863,44765,17771,44858,44689,24441,17904,31354,6609,44711,17981,13,30986,44849,44775,18572,45518,17601,19057,18185,37267,18981,19078,44856,17657,44764,44873,17092,44865,44884,18301,45229,17556,14622,44674,32454,18172,44739,17835,44869)
Unknown column 'np.person' in 'where clause'