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 (44856,17335,45229,17527,14402,8753,44689,18648,17351,17703,17278,18427,44861,44687,44685,37057,44671,44884,18237,18572,30963,44640,44845,44835,45286,28313,44762,17009,44851,45177,44894,18894,18301,18996,13,4686,16885,6862,44764,17492,44674,44869,24438,45051,36472,45561,17904,45072,45518,22509,19078,3883,44855,31354,45043,17237,44531,45180,13425,13922,18279,17755,18042,44878,5388,32454,13988,17839,6609,18446)
Unknown column 'np.person' in 'where clause'