Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
i want to get random element where it ID is different of:
$doSet = DataObject::get(
$callerClass = "PlWycieczkaPage",
$filter = "ID != 17",
$sort = "RAND()",
$join = "",
$limit = 3
but i get:
There has been an error
The website server has not been able to respond to your request.
no idea ?
i dont believe that i cant do negation in SQL
Thats the standard error message. Use devmode to enable full debug / error messages
DataObject::get("PlWycieczkaPage", "`PlWycieczkaPage`.ID != '17'","RAND()",3);