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 (18237,44870,44762,6875,18279,45043,44865,18652,45180,44851,30986,18900,13,44711,44640,22509,18286,44768,18894,45277,45346,18353,44674,45561,18719,45516,17703,44531,44671,44853,24411,18430,5410,44685,6609,45262,18648,5388,37267,45042,37057,17527,24438,3,18301,17237,44855,44894,44837,31354,18794,44845,44745,5259,18172,44739,17351,8753,18042,4765,44868,44669,17278,3883,17771,5993,17835,18185,9341,45518)
Unknown column 'np.person' in 'where clause'