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 (19078,24412,45286,17351,18185,17278,44531,44861,16885,4765,17755,44863,18900,13425,18042,45561,44869,44849,36472,45567,16935,17848,18301,44671,44873,5993,22509,18652,44855,44884,5388,45516,44878,44764,44687,17601,18237,24438,34194,17092,45518,44836,8753,18996,18279,4686,44745,44867,44865,17009,17703,44837,37057,31354,18650,44870,18427,45180,17981,44640,44858,30963,5259,13988,6782,44739,45346,24441,44762,45421)
Unknown column 'np.person' in 'where clause'