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 (44873,18572,45421,45072,17092,30963,45051,44711,45180,6782,17703,18900,44835,44836,37267,17351,5259,17839,3883,45262,17237,44762,16935,44855,39676,24412,17492,44671,8753,17835,24441,17904,44775,44854,18353,18237,17657,19078,28313,45043,44837,13988,24411,17009,44848,44845,5388,44867,44531,37057,44869,44863,17601,17771,45042,18981,3,18996,18794,44689,44745,18185,44640,45561,18042,31354,18648,18688,44875,19057)
Unknown column 'np.person' in 'where clause'