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 (44865,45042,45043,44868,45517,18900,18446,44671,18237,44775,44835,17601,44861,6862,17009,18301,17335,17237,45516,17657,44669,14622,45518,44854,45072,18650,3883,44851,17492,18648,3,44848,8753,17904,44687,44766,44866,44531,44767,44845,34194,28530,13922,44745,32454,44764,17278,17092,14402,5388,44884,44867,24438,44837,45180,18172,18353,17756,17848,18652,4765,45277,45229,30986,10402,44863,45567,18279,5259,44870)
Unknown column 'np.person' in 'where clause'