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,44851,24411,45180,44870,13,6609,17839,17657,45177,34194,44869,18996,44768,45346,17601,44640,44854,44531,44685,17492,32454,6875,3,18237,44868,44762,45567,17527,17848,31354,18894,44848,45421,44764,17755,17335,37057,44878,44861,17237,18286,19057,5410,44845,45051,18446,28530,44687,45072,17092,44739,17009,5388,30135,45516,6782,39676,44837,18042,44689,44853,37267,17756,16935,17278,9341,13922,18301,18185)
Unknown column 'np.person' in 'where clause'