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 (18650,6609,44856,18981,45072,44836,18652,24438,5993,32454,44858,19078,44767,24411,44894,17556,17278,30963,44775,16935,44863,14402,45517,3,17835,44687,19057,28313,18286,43800,44640,45262,36472,5410,13,44531,3883,44848,45051,44873,17904,44711,44866,44766,44865,28530,44884,17848,18688,17009,6875,17492,18279,10402,45177,17092,17601,13922,44855,14622,45518,44854,5388,6782,45516,45277,13425,45229,39676,44861)
Unknown column 'np.person' in 'where clause'