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 (18572,17114,45072,17657,44835,43800,24411,28313,44767,16935,45421,36472,17351,44863,45567,45180,44875,44685,37267,17703,18894,44867,17009,32454,17771,18688,30963,44837,18446,44861,45043,45518,45229,18172,18237,18900,44765,17092,13988,44884,30986,44849,13922,5388,18185,18652,17835,5993,17278,31354,44868,28530,44674,44687,18719,18794,17848,17237,44531,18279,6609,6875,4765,5410,9341,19057,18301,44640,17904,16885)
Unknown column 'np.person' in 'where clause'