SELECT tbtipps.id,tbtipps.tipptype,tbtipps.insertdate FROM tbtipps WHERE tbtipps.tipptype='5' AND (validto>='2015-01-29 13:17:48' or validto is null) ORDER BY tbtipps.tipptype asc, tbtipps.insertdate desc LIMIT 0,3 SELECT tbtipps.id,tbtipps.tipptype,tbtipps.insertdate FROM tbtipps WHERE tbtipps.tipptype='5' AND (validto>='2015-01-29 13:17:48' or validto is null) ORDER BY tbtipps.tipptype asc, tbtipps.insertdate desc LIMIT 0,3


    SELECT tbtipps.id,tbtipps.tipptype,tbtipps.insertdate FROM tbtipps WHERE tbtipps.id=434 ORDER BY tbtipps.tipptype asc, tbtipps.insertdate desc LIMIT 0,999999999999