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 (18650,16935,17335,44775,17601,45277,44685,44640,17278,44739,44861,30135,44848,45518,17703,24438,17657,44855,9341,17771,45561,45346,18981,18572,44835,18172,44884,44711,5993,18279,19057,37057,45516,45567,24412,44875,44868,37267,44869,30986,18042,6782,44762,45421,17839,18301,17756,44836,45043,44767,39676,44873,44669,6875,13,44863,31354,17351,18719,44674,18648,28313,44853,44849,18286,45517,18427,18237,44858,13922)
Unknown column 'np.person' in 'where clause'