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 (17835,45277,18301,18900,44739,44764,19078,17904,44765,45229,44853,17556,44878,44854,18446,44868,44674,44689,3,44766,18430,44531,18353,17771,44848,18427,24438,44845,24441,44866,17848,30135,44870,44861,18572,18894,17335,45072,44884,17278,14402,44869,6609,45517,44640,44767,44856,24411,44865,13922,17009,44687,17703,44855,44762,45518,22509,24412,44745,44858,44863,6862,44875,5259,45515,45262,18996,17839,3883,32454)
Unknown column 'np.person' in 'where clause'