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 (18427,44765,44767,44873,4765,44687,8753,44671,44762,44845,30135,37057,3883,45515,44685,18301,44640,17527,18996,24412,44851,45051,22509,44884,45180,44869,44837,18894,18042,17756,28313,44766,18172,44745,18286,17492,45516,44855,18900,14402,44868,17556,36472,18353,45567,17771,17009,9341,44848,24441,39676,44853,44835,5388,45286,18430,17657,16935,18719,19057,45561,45042,44856,4686,44849,5259,17237,17351,44863,6782)
Unknown column 'np.person' in 'where clause'