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 (18286,44685,28313,17556,17848,19078,5259,18279,9341,6782,44848,18652,8753,44689,45043,39676,16935,17839,17527,44863,18719,6609,3,17335,45567,13988,44531,18894,6875,30135,44687,44762,17703,24411,44884,44849,44854,17904,28530,17009,14402,45516,18794,44873,45277,44765,44875,45229,45515,3883,17092,13,45177,5388,45262,4765,44861,18430,44868,17278,44640,44775,17492,45518,44674,44878,30986,17657,45561,17351)
Unknown column 'np.person' in 'where clause'