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,18648,44873,18650,5388,44531,18286,44868,44867,6609,18996,36472,44669,3,30963,44687,17601,18446,22509,44869,44767,37267,45180,44764,34194,44674,17237,43800,9341,18900,17703,18353,44837,17335,10402,45421,44835,44711,17756,17904,44689,13922,44870,32454,45286,44851,39676,44745,13,44856,17527,44854,17092,44775,45567,18430,24412,44875,4765,44863,44853,24438,45516,44845,44848,5259,3883,5993,45262,6862)
Unknown column 'np.person' in 'where clause'