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 (44873,9341,18981,45262,22509,45286,24412,3,45421,18427,17335,17601,17756,45515,34194,44837,18894,45051,43800,14622,44856,37057,18900,17092,44868,45277,8753,5993,44861,44845,17237,17278,18042,44855,17657,45043,44878,18446,13922,31354,39676,18172,45561,30963,44739,44685,16935,17771,44765,18279,44687,18353,17351,16885,18794,44531,44869,17755,45517,18301,30986,44762,17981,24438,44863,18286,18652,44854,17848,44766)
Unknown column 'np.person' in 'where clause'