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 (44640,17755,24441,44711,44849,44870,44851,44685,32454,17527,13988,45277,44858,17492,44837,44745,24438,17657,18430,18427,18719,44868,14402,28530,44671,19078,18237,44739,44836,24411,16885,45051,36472,4765,44873,44775,18572,44669,17848,3883,17703,18900,45518,18301,6875,44687,14622,18652,44689,18353,18279,44674,16935,45421,17092,44767,18446,6609,31354,17335,17835,45567,44766,17904,45561,17981,18894,17351,18650,45515)
Unknown column 'np.person' in 'where clause'