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 (44764,44863,17527,44875,18894,43800,5259,5993,18688,17703,24412,44836,45177,17904,17335,18572,24438,18446,32454,18286,44868,45262,18185,18430,19057,44855,44854,13988,44858,18301,5388,18237,17092,28530,44674,24411,44837,44851,24441,17657,44745,30986,44866,17351,5410,17601,18279,45346,45516,39676,18353,17839,45517,44856,44640,44884,3,17237,37267,44685,44767,28313,44869,44867,44687,18996,45042,13922,31354,44762)
Unknown column 'np.person' in 'where clause'