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 (18652,37267,17278,37057,17237,19078,6875,13988,18650,19057,44851,17657,45516,44870,32454,24441,17756,45042,17351,10402,44837,18353,44671,44845,18794,44685,17601,44762,18042,45262,45518,45561,18446,17335,44858,44884,17755,31354,28530,44878,18996,17556,16935,44861,4765,45229,30986,17981,6609,5388,44674,18900,44894,44867,44687,18301,24411,36472,44745,17703,18648,43800,17527,18894,14622,44873,44764,44863,17835,44711)
Unknown column 'np.person' in 'where clause'