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 (18172,18981,5388,17601,18237,44685,44837,45515,17527,13,44869,18572,44858,18286,45043,17351,6875,44853,18301,44687,13425,44835,45286,13988,44854,44674,18688,19057,45177,32454,30135,18794,18996,18652,44873,17492,17756,5993,22509,44531,18719,6862,17981,39676,24411,17703,3,30986,24438,45180,17237,44863,13922,44875,31354,17848,10402,8753,43800,17755,44766,44856,44855,18042,45262,24441,44867,45567,44861,17904)
Unknown column 'np.person' in 'where clause'