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 (44766,44674,45516,18719,17848,3,17703,45180,4765,17601,44848,18042,45043,17904,44873,17335,44845,31354,32454,18900,18894,24411,28530,45051,18430,18996,17771,44878,44868,14402,45072,44836,44863,44875,17556,9341,17492,10402,44762,44849,13988,44689,44711,44869,44640,17009,44685,44854,44739,13922,17527,44856,39676,45421,13425,18446,36472,6609,45518,44531,44745,8753,45561,44861,45567,44851,44884,30963,22509,18650)
Unknown column 'np.person' in 'where clause'