Index: t3lib/class.t3lib_befunc.php =================================================================== --- t3lib/class.t3lib_befunc.php (revision 6491) +++ t3lib/class.t3lib_befunc.php (working copy) @@ -3132,7 +3132,11 @@ while(list($kk, $vv) = each($fTWHERE_parts)) { if ($kk) { $fTWHERE_subpart = explode('###', $vv, 2); - $fTWHERE_parts[$kk] = $TSconfig['_THIS_ROW'][$fTWHERE_subpart[0]].$fTWHERE_subpart[1]; + if ($fTWHERE_subpart[0] === 'uid' && !is_numeric($TSconfig['_THIS_ROW']['uid'])) { + $fTWHERE_parts[$kk] = '0' . $fTWHERE_subpart[1]; + } else { + $fTWHERE_parts[$kk] = $TSconfig['_THIS_ROW'][$fTWHERE_subpart[0]] . $fTWHERE_subpart[1]; + } } } $fTWHERE = implode('', $fTWHERE_parts);