I need
AND pic_title LIKE %2013% added to this query not sure what is the correct syntax
pic_title is a column in ALBUM_TABLE
$sql = "SELECT *
FROM " . ALBUM_TABLE . " AS a, " . ALBUM_CAT_TABLE . " AS c
WHERE c.cat_id = a.pic_cat_id
AND c.cat_id in (3,104, 58,489,81,364,127,3,150,465,173,196,219,242,265,288,311,334,509,529, 549, 569,589,609,629,649,669,689,709,729, 749, 769, 789, 809, 829, 849, 869, 889, 909, 929, 949, 969, 989, 1009, 1029, 1049, 1070, 1088, 1189, 1149, 1129, 1109, 1169, 1209, 1229, 1249, 1269, 1289,1309,1329, 1349, 1369, 1389, 1409, 1429, 1449, 1469, 1489, 1509, 1529, 1549, 1569, 1589, 1609,1629,1649,1669,1689,1709,1729,1749,1769,1789,1809,1829,1849,1869,1889,1909,1929,1949,1969,1989,2009, 2029, 2049, 2069, 2089,2109, 2129, 2149, 2169, 2189, 2209, 2229, 2249, 2269, 2289, 2309, 2329, 2349, 2369, 2389, 2409, 2429, 2449, 2469, 2489, 2509)
ORDER BY pic_time DESC LIMIT $start, ".$CFG['number_of_pics'];