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 (44711,44767,17771,44685,28313,44640,44739,30963,44865,45262,45043,37267,45517,44853,17657,18172,13922,45567,44689,36472,14402,18719,44870,45180,17904,4765,44762,5259,45051,30986,44669,18688,13425,6862,44775,18301,13988,44837,18572,17351,18900,44764,30135,5993,44866,17981,44835,44687,44858,17601,18652,44856,43800,45286,17114,5388,44855,18353,8753,31354,14622,17835,17278,45072,18042,32454,17237,18185,24411,19057)
Unknown column 'np.person' in 'where clause'