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 (6609,18301,24438,17756,9341,18719,44687,44868,45180,18572,18237,17335,44762,45286,18286,44869,24411,6782,17114,45516,16885,16935,17839,18185,18042,5388,44739,45421,44865,17601,44861,17237,44849,44531,17009,18996,28530,18353,45229,17904,17351,22509,18279,17092,18794,18652,44855,18427,44764,44711,30135,44867,13922,17527,44848,44669,17848,3,44845,45561,17657,13,44775,8753,18172,19078,18900,17492,5410,30963)
Unknown column 'np.person' in 'where clause'