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 (44878,45516,44870,45518,4765,6862,17237,24411,45072,44767,45561,17703,44640,44687,24438,44685,13,24412,14402,17601,3883,45421,44836,17657,30135,17756,16885,18172,30986,32454,44861,28313,5388,10402,6782,5259,5410,18353,44858,30963,44856,44768,45229,44848,17009,8753,45517,44849,18301,17492,44739,45043,28530,44845,44835,44837,18996,44869,17278,6609,44764,18286,44711,17092,44854,39676,17835,44766,18719,45515)
Unknown column 'np.person' in 'where clause'